Advertisement
LYSoft

UserDBContext

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