в догонку
This commit is contained in:
parent
cc4d0ddb70
commit
d9126dde2b
@ -30,6 +30,8 @@ namespace DatabaseCore
|
||||
|
||||
modelBuilder.Entity<Role>().HasIndex(s => s.RoleName).IsUnique();
|
||||
|
||||
modelBuilder.Entity<User>().HasIndex(s => s.UserName;
|
||||
|
||||
modelBuilder.Entity<EmployeePost>().HasIndex(s => s.EmployeePostName).IsUnique();
|
||||
|
||||
modelBuilder.Entity<Employee>().HasIndex(p => new { p.FirstName, p.LastName, p.Patronymic }).IsUnique();
|
||||
|
Loading…
Reference in New Issue
Block a user