- 增加 低代码 ZoreEntity 迁移 API;

This commit is contained in:
2881099
2023-12-14 14:26:19 +08:00
parent 5c756e7d75
commit 94acdc6c3a
8 changed files with 432 additions and 307 deletions

View File

@@ -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;