如何限制AspNetUsers表中的UserNameIndexUNIQUE索引?我正在将ASP.NETIdentity与Mysql后端一起使用,并且正在运行另一个实例:Indexcolumnsizetoolarge.Themaximumcolumnsizeis767bytes.我试过了modelBuilder.Entity().Property(x=>x.UserName).HasMaxLength(100);modelBuilder.Entity().Property(t=>t.Id).HasMaxLength(100);我已经完成了所有的标准:publicclassSecuser: