Browse Source

Update Core

pull/19/head
sunkaixuan 3 years ago
parent
commit
d748257ea8
  1. 4
      Src/Asp.NetCore2/SqlSugar/Abstract/CodeFirstProvider/CodeFirstProvider.cs

4
Src/Asp.NetCore2/SqlSugar/Abstract/CodeFirstProvider/CodeFirstProvider.cs

@ -222,6 +222,10 @@ namespace SqlSugar
{
foreach (var item in entityInfo.Indexs)
{
if (entityInfo.Type.GetCustomAttribute<SplitTableAttribute>() != null)
{
item.IndexName = item.IndexName + entityInfo.DbTableName;
}
if (!this.Context.DbMaintenance.IsAnyIndex(item.IndexName))
{
var fileds = item.IndexFields

Loading…
Cancel
Save