mirror of https://github.com/abpframework/abp.git
16 changed files with 61 additions and 47 deletions
@ -0,0 +1,27 @@ |
|||
using System; |
|||
using JetBrains.Annotations; |
|||
|
|||
namespace Volo.Abp.MultiTenancy |
|||
{ |
|||
public class BasicTenantInfo |
|||
{ |
|||
/// <summary>
|
|||
/// Null indicates the host.
|
|||
/// Not null value for a tenant.
|
|||
/// </summary>
|
|||
[CanBeNull] |
|||
public Guid? TenantId { get; } |
|||
|
|||
/// <summary>
|
|||
/// Name of the tenant if <see cref="TenantId"/> is not null.
|
|||
/// </summary>
|
|||
[CanBeNull] |
|||
public string Name { get; } |
|||
|
|||
public BasicTenantInfo(Guid? tenantId, string name = null) |
|||
{ |
|||
TenantId = tenantId; |
|||
Name = name; |
|||
} |
|||
} |
|||
} |
|||
@ -1,18 +0,0 @@ |
|||
using System; |
|||
|
|||
namespace Volo.Abp.MultiTenancy |
|||
{ |
|||
public class TenantIdWrapper |
|||
{ |
|||
/// <summary>
|
|||
/// Null indicates the host.
|
|||
/// Not null value for a tenant.
|
|||
/// </summary>
|
|||
public Guid? TenantId { get; } |
|||
|
|||
public TenantIdWrapper(Guid? tenantId) |
|||
{ |
|||
TenantId = tenantId; |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue