Advertisement
Guest User

Untitled

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