Base solution for your next web application

Activities of "purplerain"

Ok thank you very much, it works.

var query = _classOneRepository.GetAll();

Since GetAllIncluding is only used with collections, it should get virtual with GetAll, right?

No that's the point. ClassOne is IMustHaveTenant and ClassTwo should be accessible to all tenants.

Hi,

There is a scenario where we keep some data which should be available to all tenants but in the virtual entity it's coming as null so I suppose it's to do with multi tenancy, what is the way around this.

For example

public class ClassOne : Entity, IMustHaveTenant { public virtual int TenantId { get; set; } public int ClassTwoId {get;set;} [ForeignKey("ClassTwoId")] public virtual ClassTwo {get;set;} }

public class ClassTwo : Entity { }

ClassTwo is coming as null when I access ClassOne although there is a data for the id.

How do I fix this? Plz help

Hi, Is there any way to add existing users to put in Tenants? I mean I had multitenancy as false before. I have enabled it now and want to migerate all existing users to have new tenants.

Whats the best approach to do this?

Thanks

Showing 1 to 5 of 5 entries