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