Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public partial class City
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public City()
- {
- this.Projects = new HashSet<Project>();
- }
- public int Id { get; set; }
- public string Name { get; set; }
- [ForeignKey("Region")]
- public Nullable<int> Region_Id { get; set; }
- public virtual Region Region { get; set; }
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection<Project> Projects { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement