Hi Team, I have moved 1 table from tenant unaware to tenant aware by adding "IMultiTenant" interface in domain class. i am facing 2 challenges: 1- tenantid in db is setting as null 2- as i have configured seperate db for tenant but data is getting saved in host db only.
please help what i am missing
public class Disease : FullAuditedAggregateRoot<Guid>, IMultiTenant { public virtual Guid? TenantId { get; set; }
[NotNull]
public virtual string Code { get; set; }
[NotNull]
public virtual string Name { get; set; }
}
No Worries and Thanks for all help. I am able to setup and run the tenant in new DB
ok. Thanks. Let me try
Hello liangshiwei, Thanks. what should be next step?
Please note i am using 4.2.2
Thanks berkansasmaz for great help.
Solution is working as expected.