mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
-
This commit is contained in:
parent
b78d695e85
commit
f78ed05809
@ -106,10 +106,6 @@ namespace SqlSugar
|
||||
protected virtual void Execute(Type entityType)
|
||||
{
|
||||
var entityInfo = this.Context.EntityMaintenance.GetEntityInfo(entityType);
|
||||
if (entityInfo.IsDisabledUpdateAll)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (this.DefultLength > 0)
|
||||
{
|
||||
foreach (var item in entityInfo.Columns)
|
||||
@ -125,6 +121,10 @@ namespace SqlSugar
|
||||
entityInfo.DbTableName = tableName;
|
||||
entityInfo.Columns.ForEach(it => { it.DbTableName = tableName; });
|
||||
var isAny = this.Context.DbMaintenance.IsAnyTable(tableName);
|
||||
if (isAny&&entityInfo.IsDisabledUpdateAll)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (isAny)
|
||||
ExistLogic(entityInfo);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user