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.
I want to create an upload-form using ng2-file-upload but fail, getting the following error:
ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'uploader' since it isn't a known property of 'input'. ("<input type="file" ng2FileSelect [ERROR ->][uploader]="uploader"/>")
Actually, this seems to be a common problem a lot of people out there encounter when using ng2-file-upload. Most of them solve it by importing FileUploadModule into their own module. So, I tried to do the same in my main.module.ts - without any success. I still get the same error message.
Is there anything else I might be missing?
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?