mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-12-30 03:05:48 +08:00
- 增加 低代码 ZoreEntity 迁移 API;
This commit is contained in:
@@ -73,6 +73,13 @@ ManyToMany 级联删除中间表(注意不删除外部根)
|
||||
orm.CodeFirst.SyncStructure(table, table.DbName, false);
|
||||
}
|
||||
|
||||
public TableInfo GetTableInfo(string name) => _tables.Where(a => a.CsName == name).FirstOrDefault();
|
||||
public void SyncStructure(string name)
|
||||
{
|
||||
var table = GetTableInfo(name);
|
||||
_orm.CodeFirst.SyncStructure(table, table.DbName, false);
|
||||
}
|
||||
|
||||
static List<ZoreTableInfo> VilidateSchemaToInfo(IFreeSql orm, IEnumerable<TableDescriptor> schemas)
|
||||
{
|
||||
var common = (orm.Ado as AdoProvider)._util;
|
||||
|
||||
Reference in New Issue
Block a user