mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 02:32:50 +08:00
增加 SyncStructure(TableDescriptor[] schemas)
This commit is contained in:
parent
07ee520a1f
commit
47493317b3
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user