Base solution for your next web application

Activities of "lessfriction"

Any updates for this bug?

Answer

/// <summary> /// If ParentTenantId is null, then it is associated directly to the Main Host Tenant. /// </summary> public virtual int? ParentTenantId { get; set; }

    [ForeignKey("ParentTenantId")]
    public virtual Tenant ParentTenant { get; set; }

    /// &lt;summary&gt;
    /// Associate Parent Tenants to its Children Tenants
    /// &lt;/summary&gt;
    public virtual ICollection&lt;Tenant&gt; Children { get; set; }

I am implementing the extension of the Tenants with something like this.

I think it's somehow similar to the Organization Units wherein they have root and children.

Any thoughts?

Showing 1 to 2 of 2 entries