You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
526 B

using Newtonsoft.Json;
using SqlSugar.Entities;
namespace SqlSugar
{
public class ModelContext : BaseEntity
{
[SugarColumn(IsIgnore = true)]
[JsonIgnore]
public SqlSugarClient Context { get; set; }
public ISugarQueryable<T> CreateMapping<T>() where T : class, new()
{
Check.ArgumentNullException(Context, "Please use Sqlugar.ModelContext");
using (Context)
{
return Context.Queryable<T>();
}
}
}
}