增加 SyncStructure(TableDescriptor[] schemas)

This commit is contained in:
Tony Han 2024-06-23 16:54:39 +08:00
parent 07ee520a1f
commit 47493317b3

View File

@ -105,6 +105,13 @@ ManyToMany 级联删除中间表(注意不删除外部根)
_orm.CodeFirst.SyncStructure(table, table.DbName, false); _orm.CodeFirst.SyncStructure(table, table.DbName, false);
} }
public void SyncStructure(TableDescriptor[] schemas)
{
_tables = ValidateSchemaToInfoInternal(_orm, schemas);
foreach (var table in _tables)
_orm.CodeFirst.SyncStructure(table, table.DbName, false);
}
/// <summary> /// <summary>
/// 同步指定表结构 /// 同步指定表结构
/// </summary> /// </summary>