Advertisement
Guest User

Untitled

a guest
Feb 6th, 2014
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1. public class Company : BaseEntity
  2.     {
  3.         public string Name { get; set; }
  4.         public virtual ICollection<User> Users { get; set; }
  5.     }
  6.  
  7. public class User : BaseEntity
  8.     {
  9.         public string Login { get; set; }
  10.         public string Password { get; set; }
  11.         public string FirstName { get; set; }
  12.         public string LastName { get; set; }
  13.         public UserRole Role { get; set; }
  14.         [Required]
  15.         public virtual Company Company { get; set; }
  16.     }
  17.  
  18. public class BaseEntity
  19.     {
  20.         public DateTime CreateDate { get; set; }
  21.         public DateTime ModifyDate { get; set; }
  22.         public string CreatedBy { get; set; }
  23.         public string ModifyBy { get; set; }
  24.         public int ID { get; set; }
  25.         public bool IsDeleted { get; set; }
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement