mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	增加 SyncStructure(TableDescriptor[] schemas)
This commit is contained in:
		@@ -105,6 +105,13 @@ ManyToMany 级联删除中间表(注意不删除外部根)
 | 
			
		||||
                _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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user