mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	增加 SyncStructure(TableDescriptor[] schemas)
This commit is contained in:
		@@ -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>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user