mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-22 02:51:58 +08:00
Add SimpleClient.AsTenant()
This commit is contained in:
@@ -11,6 +11,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
protected ISqlSugarClient Context { get; set; }
|
protected ISqlSugarClient Context { get; set; }
|
||||||
|
|
||||||
|
public ITenant AsTenant()
|
||||||
|
{
|
||||||
|
return this.Context as ITenant;
|
||||||
|
}
|
||||||
public ISqlSugarClient AsSugarClient()
|
public ISqlSugarClient AsSugarClient()
|
||||||
{
|
{
|
||||||
return this.Context;
|
return this.Context;
|
||||||
@@ -170,7 +174,10 @@ namespace SqlSugar
|
|||||||
public partial class SimpleClient
|
public partial class SimpleClient
|
||||||
{
|
{
|
||||||
protected ISqlSugarClient Context { get; set; }
|
protected ISqlSugarClient Context { get; set; }
|
||||||
|
public ITenant AsTenant()
|
||||||
|
{
|
||||||
|
return this.Context as ITenant;
|
||||||
|
}
|
||||||
public ISqlSugarClient AsSugarClient()
|
public ISqlSugarClient AsSugarClient()
|
||||||
{
|
{
|
||||||
return this.Context;
|
return this.Context;
|
||||||
|
|||||||
Reference in New Issue
Block a user