mirror of https://github.com/abpframework/abp.git
5 changed files with 59 additions and 17 deletions
@ -1,15 +1,17 @@ |
|||||
namespace Volo.Abp.AspNetCore.MultiTenancy |
using Volo.Abp.MultiTenancy; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.MultiTenancy |
||||
{ |
{ |
||||
public class AspNetCoreMultiTenancyOptions |
public class AspNetCoreMultiTenancyOptions |
||||
{ |
{ |
||||
/// <summary>
|
/// <summary>
|
||||
/// Default: "__tenant".
|
/// Default: <see cref="TenantResolverConsts.DefaultTenantKey"/>.
|
||||
/// </summary>
|
/// </summary>
|
||||
public string TenantKey { get; set; } |
public string TenantKey { get; set; } |
||||
|
|
||||
public AspNetCoreMultiTenancyOptions() |
public AspNetCoreMultiTenancyOptions() |
||||
{ |
{ |
||||
TenantKey = "__tenant"; |
TenantKey = TenantResolverConsts.DefaultTenantKey; |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
namespace Volo.Abp.MultiTenancy |
||||
|
{ |
||||
|
public class TenantResolverConsts |
||||
|
{ |
||||
|
public const string DefaultTenantKey = "__tenant"; |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue