Base solution for your next web application

Activities of "p.j.keukens"

Might this be happening because the entity historie is dependant on the iABPSession as stated here (from boilerplate documentation). Because in the scheduled hangfire job there is no session user etc.

The Entity History tracking system uses IAbpSession to get the current UserId and TenantId.

Is it possible to make it work in the hangfire jobs? What are the exact dependencies in the entity history to the abpsession?

I've added the entity types to the TrackedTypes, most of them are oké now.

Still some entities that are created inside a hangifre job don't get an entity change log. When I change the entity in the application it get's logged but not when it's created inside a hangfire job.

Iside the job I do:

using (var uow = _unitOfWorkManager.Begin(TransactionScopeOption.RequiresNew))
{
    InsuranceInvoice.Invoice invoice = new InsuranceInvoice.Invoice { amount = 1000 };
    .....
    ....
    await _InsuranceInvoiceRepository.InsertAsync(invoice);

    await uow.CompleteAsync();
    }

Some of these objects are generated inside a hangfire job, might that be the problem?

yes I mean Entity History

Hi,

I have a problem with auditing. I have several classes that have auditing enabled but only some of them are actually audited.

All my entityclasses have FullAuditedEntity and the classes have the Audited attribute.

Also when I go to the change logs there are only 5 object types and not all entities that have the audited attribute are showing up.

Am I missing something?

Hi,

I have a question. In my code we are getting a list of tenants (without the deleted tenants) but we want to include the user that owns the tenant and we want to include it even if it is deleted.

so basically we are doing this:

var query = TenantManager.Tenants .Include(t => t.Edition) .Include(t => t.TenantOwnerUser)

so I want to disable the softdelete filter but only for the include of TenantOwnerUser.

Is this possible and if so how would I do that?

Thanks, that should do the trick!

Hi,

We have setup an application using aspnetzero v6.9 using .net core mvc and jquery.

Now there is another system that would like to make a connection to our application. The other system would need to make a webservice call (insert data) on behalf of a tenant. Not all AppService calls should be available just a specific call.

How would I set that up within the current configuration.

At this moment we are not using the Host project. Should I use the host project or would it be recommended to set it up in the mvc app that is running. How would the users authenticate to use the API?

If anyone could point me in the right direction that would be appreciated.

Best regards Patrick

yes, it seems like that did the trick.

Thank you

Hi,

I'm using AspnetZero version 6.9 .Net Core + jquery and I'm having a problem with sweetalert or rather abp.localize.

When I localize a string containing a single or double quote, it doesn't render properly.

For example in my resource xml I've got this string (ps. here I've placed a space between the ampersand and the text otherwise it would render the quoate or single quote):

<text name="DocumentDeleteWarningMessage">Are you sure you want to delete document & quot;{0}& apos;?</text>

Now when I use

abp.localize(DocumentDeleteWarningMessage)

it shows "Are you sure you want to delete document \"test\u0027?"

It shows like this in the sweetalert box:

Using ' or " in the xml doesn't help as well it doesn't render properly.

Please help me to solve this problem as it is not very user friendly

Showing 11 to 20 of 56 entries