Skip to content

Commit 4749331

Browse files
committed
增加 SyncStructure(TableDescriptor[] schemas)
1 parent 07ee520 commit 4749331

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Extensions/FreeSql.Extensions.ZeroEntity/ZeroDbContext.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ public void SyncStructure()
105105
_orm.CodeFirst.SyncStructure(table, table.DbName, false);
106106
}
107107

108+
public void SyncStructure(TableDescriptor[] schemas)
109+
{
110+
_tables = ValidateSchemaToInfoInternal(_orm, schemas);
111+
foreach (var table in _tables)
112+
_orm.CodeFirst.SyncStructure(table, table.DbName, false);
113+
}
114+
108115
/// <summary>
109116
/// 同步指定表结构
110117
/// </summary>

0 commit comments

Comments
 (0)