Add SimpleClient.AsTenant()

This commit is contained in:
sunkaixuan
2019-05-31 16:48:10 +08:00
parent 57db52d44f
commit cd7985db6c

View File

@@ -11,6 +11,10 @@ namespace SqlSugar
{
protected ISqlSugarClient Context { get; set; }
public ITenant AsTenant()
{
return this.Context as ITenant;
}
public ISqlSugarClient AsSugarClient()
{
return this.Context;
@@ -170,7 +174,10 @@ namespace SqlSugar
public partial class SimpleClient
{
protected ISqlSugarClient Context { get; set; }
public ITenant AsTenant()
{
return this.Context as ITenant;
}
public ISqlSugarClient AsSugarClient()
{
return this.Context;