mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-04 04:37:58 +08:00
CodeFirst Bug
This commit is contained in:
parent
8b080b0626
commit
6e6ff80fd2
@ -30,6 +30,10 @@ namespace SqlSugar
|
|||||||
result.TableDescription = sugarTable.TableDescription;
|
result.TableDescription = sugarTable.TableDescription;
|
||||||
}
|
}
|
||||||
if (this.Context.Context.CurrentConnectionConfig.ConfigureExternalServices != null && this.Context.CurrentConnectionConfig.ConfigureExternalServices.EntityNameService != null) {
|
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);
|
this.Context.CurrentConnectionConfig.ConfigureExternalServices.EntityNameService(type,result);
|
||||||
}
|
}
|
||||||
result.Type = type;
|
result.Type = type;
|
||||||
|
Loading…
Reference in New Issue
Block a user