Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class UserDBContext : LoganDBBaseObject<User>
- {
- public UserDBContext()
- : base()
- {
- Property(p => p.EmailAddress)
- .HasColumnName("sEmailAddress")
- .HasMaxLength(200)
- .IsRequired();
- Property(p => p.Password)
- .HasColumnName("sPassword")
- .HasMaxLength(255)
- .IsRequired();
- HasRequired(r => r.Store)
- .WithRequiredDependent();
- HasRequired(r => r.Role)
- .WithRequiredDependent();
- ToTable("Users");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement