Advertisement
LYSoft

Untitled

May 13th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 KB | None | 0 0
  1.     public class UserDBContext : LoganDBBaseObject<User>
  2.     {
  3.         public UserDBContext()
  4.             : base()
  5.         {
  6.             Property(p => p.EmailAddress)
  7.                 .HasColumnName("sEmailAddress")
  8.                 .HasMaxLength(200)
  9.                 .IsRequired();
  10.  
  11.             Property(p => p.Password)
  12.                 .HasColumnName("sPassword")
  13.                 .HasMaxLength(255)
  14.                 .IsRequired();
  15.  
  16.             HasRequired(r => r.Store)
  17.                 .WithRequiredDependent();
  18.  
  19.             HasRequired(r => r.Role)
  20.                 .WithRequiredDependent();
  21.  
  22.             ToTable("Users");
  23.         }
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement