Base solution for your next web application

Activities of "alexanderpilhar"

Hi @ismcagdas,

FileUploadModule has already been imported to admin.module.ts and is used for change-profile-picture-modal.component as well as tenant-settings.component. I basically try to do something very similar to this for main.module.ts but just can't get it to work properly.

Ah, i just found out how to do it myself 8-)

Using the following line before quering the DB did the trick for me:

_context.CurrentUnitOfWorkProvider.Current.DisableFilter(AbpDataFilters.MayHaveTenant);

Hi!

I'm curious whether there are any updates on this issue!?

I think I encounter the same behaviour when seeding the database! They way I do it is to first query the DB for an element with a certain ID using the following:

var result = context.TableName.Find(id)

If the result is null I create a new element with a certain Tenant-Id and insert it to the Table. Adding the new element works as expected!

But the next time I run the seed-method the result will be null and a new element will be inserted, again. I think this has something to do with the Tenant-Id. Since the Tenant-Id is not null, the query won't have any result - the host just doesn't have any permission to read a tenant's element.

I also have the same seed-method with the only difference in the Tenant-Id being null. Here everything works as expected!

Is there a way to access the DB and query elements regardless of their Tenant-Id?

Showing 171 to 173 of 173 entries