/// <summary> /// Creates a new instance of the <see cref="TenantSpecificAggregateRootBase">TenantSpecificAggregateRootBase</see> class given a key, and some metadata. /// </summary> /// <param name="cultureName">The culture for this entity</param> /// <param name="metadata">The desired metadata for this entity</param> protected TenantSpecificAggregateRootBase(int tenantId, TIdType id, MetadataInformation metadata) : base(id, metadata.Culture) { }
/// <summary> /// Creates a new instance of the <see cref="DomainEntityBase{TIdType}">DomainEntityBase{TIdType}</see> abstract class given a key, and some metadata. /// </summary> /// <param name="key">The key for this entity</param> /// <param name="culture">The culture for this entity</param> /// <param name="metadata">The desired metadata for this entity</param> /// <param name="tenantId">The id of the tenant to which this entity belongs</param> protected TenantSpecificDomainEntityBase(int tenantId, TIdType id, MetadataInformation metadata) : base(id, metadata.Culture) { TenantId = tenantId; }