Skip to content

Commit

Permalink
初始化一个 ZeroDbContext 对象,暂不指定任何Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
hyzx86 committed Jun 23, 2024
1 parent 4749331 commit 70400d5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Extensions/FreeSql.Extensions.ZeroEntity/ZeroDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ public ZeroDbContext(IFreeSql orm, TableDescriptor[] schemas, bool syncStructure
}
}

/// <summary>
/// 初始化一个 ZeroDbContext 对象,暂不指定任何Schema
/// </summary>
/// <param name="orm"></param>
public ZeroDbContext(IFreeSql orm)
{
_orm = orm;
_tables = new List<ZeroTableInfo>();
}

public SchemaValidationResult ValidateSchema(IEnumerable<TableDescriptor> schemas)
{
try
Expand Down

0 comments on commit 70400d5

Please sign in to comment.