1 //------------------------------------------------------------------------------
3 // This code was generated from a template.
5 // Manual changes to this file may cause unexpected behavior in your application.
6 // Manual changes to this file will be overwritten if the code is regenerated.
8 //------------------------------------------------------------------------------
10 namespace Projects.Models
13 using System.Collections.Generic;
15 public partial class User
17 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
20 this.Projects = new HashSet<Project>();
21 this.ProjectTasks = new HashSet<ProjectTask>();
24 public int id { get; set; }
25 public string login { get; set; }
26 public string password { get; set; }
27 public int role_id { get; set; }
29 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
30 public virtual ICollection<Project> Projects { get; set; }
31 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
32 public virtual ICollection<ProjectTask> ProjectTasks { get; set; }
33 public virtual UserRole UserRole { get; set; }