mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-12-29 02:55:48 +08:00
initial commit
This commit is contained in:
13
FreeSql.DbContext/DbContext/FreeContext.cs
Normal file
13
FreeSql.DbContext/DbContext/FreeContext.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
|
||||
namespace FreeSql
|
||||
{
|
||||
public class FreeContext : DbContext
|
||||
{
|
||||
|
||||
public FreeContext(IFreeSql orm)
|
||||
{
|
||||
_ormScoped = DbContextScopedFreeSql.Create(orm, () => this, () => UnitOfWork);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user