public class Groups { public Groups() { } [Key] public int GroupID { get; set; } [Required] public string GroupName { get; set; } public string GroupDescription { get; set; } public virtual ICollection<Users> Users { get; set; } }
public class Users { public Users() { } [Key] public int UserId { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string UserName { get; set; } [Required] public Int64 DocID { get; set; } public string Description { get; set; } public int GroupID { get; set; } [ForeignKey("GroupID")] public virtual Groups Groups { get; set; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)