Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "vnunes"

Yes, my AbpSession.TenantId has value So to get the records with null tenant and tenant logged , I do this way?

using (CurrentUnitOfWork.DisableFilter(AbpDataFilters.MayHaveTenant)) { //here get all register with tenantId == AbpSession.TenantId and Tenant null ? var groups = _groupRepository.GetAllList().Where(x => x.TenantId == AbpSession.TenantId); }

Is it correct that?

Why SaveChanges not set tenantId with IMayHaveTenant, I'm set in controller using AbpSession.TenantId, is correct?

Thanks

How do I use IMayHaveTenant?

I have my model

public class GroupCategory: Entity, IMayHaveTenant { public string MyProperty {get; set; public int? TenantID {get; set; } }

But when I use

_groupRepository.GetAllList ();

He does not return the records that do not have TenantID, ie TenantID == null

I tried to use Disable and Enable method

How use service layer without repository pattern? The dbcontext implement by defaut a repository

Showing 1 to 3 of 3 entries