mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	- 增加 低代码 ZoreEntity 迁移 API;
This commit is contained in:
		@@ -18,7 +18,7 @@
 | 
			
		||||
		<SignAssembly>true</SignAssembly>
 | 
			
		||||
		<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
 | 
			
		||||
		<DelaySign>false</DelaySign>
 | 
			
		||||
		<Version>3.2.806</Version>
 | 
			
		||||
		<Version>3.2.807-preview20231214</Version>
 | 
			
		||||
		<PackageReadmeFile>readme.md</PackageReadmeFile>
 | 
			
		||||
	</PropertyGroup>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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