Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class UserConfig : IEntityTypeConfiguration<User>
- {
- public void Configure(EntityTypeBuilder<User> builder)
- {
- builder.Property(p => p.FirstName).IsRequired();
- builder.Property(p => p.LastName).IsRequired();
- builder.Property(p => p.MiddleName).IsRequired();
- builder.Property(p => p.JobPosition).IsRequired();
- builder.HasIndex(i => i.ActiveDirectoryName).IsUnique();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement