| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using Abp.Domain.Entities.Auditing;
- using IwbZero.Authorization.Base.Users;
- namespace IwbZero.MultiTenancy
- {
- /// <summary>
- /// Represents a Tenant of the application.
- /// </summary>
- public abstract class IwbTenant<TUser> : TenantBase, IFullAudited<TUser>
- where TUser : UserBase
- {
- ///// <summary>
- ///// Current <see cref="Edition"/> of the Tenant.
- ///// </summary>
- //public virtual Edition Edition { get; set; }
- //public virtual int? EditionId { get; set; }
- /// <summary>
- /// Reference to the creator user of this entity.
- /// </summary>
- public virtual TUser CreatorUser { get; set; }
- /// <summary>
- /// Reference to the last modifier user of this entity.
- /// </summary>
- public virtual TUser LastModifierUser { get; set; }
- /// <summary>
- /// Reference to the deleter user of this entity.
- /// </summary>
- public virtual TUser DeleterUser { get; set; }
- /// <summary>
- /// Creates a new tenant.
- /// </summary>
- protected IwbTenant()
- {
- IsActive = true;
- }
- /// <summary>
- /// Creates a new tenant.
- /// </summary>
- /// <param name="tenancyName">UNIQUE name of this Tenant</param>
- /// <param name="name">Display name of the Tenant</param>
- protected IwbTenant(string tenancyName, string name)
- : this()
- {
- TenancyName = tenancyName;
- Name = name;
- }
- }
- }
|