Add project files.
This commit is contained in:
24
CodeFirstExistingDatabase/Authors.cs
Normal file
24
CodeFirstExistingDatabase/Authors.cs
Normal file
@ -0,0 +1,24 @@
|
||||
namespace CodeFirstExistingDatabase
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
public partial class Authors
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Authors()
|
||||
{
|
||||
Courses = new HashSet<Courses>();
|
||||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Courses> Courses { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user