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