mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Add SimpleClient.AsTenant()
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user