в догонку
This commit is contained in:
parent
d9126dde2b
commit
787ca778fe
@ -30,7 +30,7 @@ namespace DatabaseCore
|
|||||||
|
|
||||||
modelBuilder.Entity<Role>().HasIndex(s => s.RoleName).IsUnique();
|
modelBuilder.Entity<Role>().HasIndex(s => s.RoleName).IsUnique();
|
||||||
|
|
||||||
modelBuilder.Entity<User>().HasIndex(s => s.UserName;
|
modelBuilder.Entity<User>().HasIndex(s => s.UserName);
|
||||||
|
|
||||||
modelBuilder.Entity<EmployeePost>().HasIndex(s => s.EmployeePostName).IsUnique();
|
modelBuilder.Entity<EmployeePost>().HasIndex(s => s.EmployeePostName).IsUnique();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user