CodeFirst Bug

This commit is contained in:
sunkaixuan 2019-05-11 20:44:25 +08:00
parent 8b080b0626
commit 6e6ff80fd2

View File

@ -30,6 +30,10 @@ namespace SqlSugar
result.TableDescription = sugarTable.TableDescription;
}
if (this.Context.Context.CurrentConnectionConfig.ConfigureExternalServices != null && this.Context.CurrentConnectionConfig.ConfigureExternalServices.EntityNameService != null) {
if (result.DbTableName == null)
{
result.DbTableName = type.Name;
}
this.Context.CurrentConnectionConfig.ConfigureExternalServices.EntityNameService(type,result);
}
result.Type = type;