You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
515 B
C#
17 lines
515 B
C#
using NPin.Framework.SqlSugarCore.Abstractions;
|
|
using Volo.Abp.MultiTenancy;
|
|
|
|
namespace NPin.Framework.TenantManagement.Domain;
|
|
|
|
public static class TenantManagementExtensions
|
|
{
|
|
public static IDisposable ChangeMaster(this ICurrentTenant currentTenant)
|
|
{
|
|
return currentTenant.Change(null, DbConnOptions.MasterTenantName);
|
|
}
|
|
|
|
public static IDisposable ChangeDefault(this ICurrentTenant currentTenant)
|
|
{
|
|
return currentTenant.Change(null, DbConnOptions.DefaultTenantName);
|
|
}
|
|
} |