Advertisement
Guest User

Untitled

a guest
Mar 30th, 2018
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1.  public partial class Region
  2.     {
  3.         [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
  4.         public Region()
  5.         {
  6.             this.Cities = new HashSet<City>();
  7.             this.UserToRegions = new HashSet<UserToRegion>();
  8.         }
  9.    
  10.         public int Id { get; set; }
  11.         public string Name { get; set; }
  12.    
  13.         [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
  14.         public virtual ICollection<City> Cities { get; set; }
  15.         [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
  16.         public virtual ICollection<UserToRegion> UserToRegions { get; set; }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement