Skip to content

Commit 70400d5

Browse files
committed
初始化一个 ZeroDbContext 对象,暂不指定任何Schema
1 parent 4749331 commit 70400d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Extensions/FreeSql.Extensions.ZeroEntity/ZeroDbContext.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,16 @@ public ZeroDbContext(IFreeSql orm, TableDescriptor[] schemas, bool syncStructure
8484
}
8585
}
8686

87+
/// <summary>
88+
/// 初始化一个 ZeroDbContext 对象,暂不指定任何Schema
89+
/// </summary>
90+
/// <param name="orm"></param>
91+
public ZeroDbContext(IFreeSql orm)
92+
{
93+
_orm = orm;
94+
_tables = new List<ZeroTableInfo>();
95+
}
96+
8797
public SchemaValidationResult ValidateSchema(IEnumerable<TableDescriptor> schemas)
8898
{
8999
try

0 commit comments

Comments
 (0)