mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 01:05:27 +08:00 
			
		
		
		
	初始化一个 ZeroDbContext 对象,暂不指定任何Schema
This commit is contained in:
		@@ -84,6 +84,16 @@ ManyToMany 级联删除中间表(注意不删除外部根)
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// 初始化一个 ZeroDbContext 对象,暂不指定任何Schema
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        /// <param name="orm"></param>
 | 
				
			||||||
 | 
					        public ZeroDbContext(IFreeSql orm)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            _orm = orm;
 | 
				
			||||||
 | 
					            _tables = new List<ZeroTableInfo>();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public SchemaValidationResult ValidateSchema(IEnumerable<TableDescriptor> schemas)
 | 
					        public SchemaValidationResult ValidateSchema(IEnumerable<TableDescriptor> schemas)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            try
 | 
					            try
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user