mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 10:24:55 +08:00
-
This commit is contained in:
@@ -13,6 +13,7 @@ namespace SqlSugar
|
|||||||
public SqlSugarClient Context { get; set; }
|
public SqlSugarClient Context { get; set; }
|
||||||
public ISugarQueryable<T> CreateMapping<T>() where T : class, new()
|
public ISugarQueryable<T> CreateMapping<T>() where T : class, new()
|
||||||
{
|
{
|
||||||
|
Check.ArgumentNullException(Context, "Please use Sqlugar.ModelContext");
|
||||||
using (Context)
|
using (Context)
|
||||||
{
|
{
|
||||||
return Context.Queryable<T>();
|
return Context.Queryable<T>();
|
||||||
|
|||||||
Reference in New Issue
Block a user