36 lines
1015 B
C#
36 lines
1015 B
C#
namespace CodeFirstExistingDatabase
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Data.Entity.Spatial;
|
|
|
|
[Table("Courses")]
|
|
public partial class Course
|
|
{
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
|
public Course()
|
|
{
|
|
Tags = new HashSet<Tag>();
|
|
}
|
|
|
|
public int Id { get; set; }
|
|
|
|
public string Title { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
|
|
public int Level { get; set; }
|
|
|
|
public float FullPrice { get; set; }
|
|
|
|
public int? Author_Id { get; set; }
|
|
|
|
public virtual Author Author { get; set; }
|
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
|
public virtual ICollection<Tag> Tags { get; set; }
|
|
}
|
|
}
|