Activities of "paykoolbackend"

hi

May not be enough, and other services may get a table not found error. You'd better change this in all projects that reference or indirectly reference to AbpAuditLoggingEntityFrameworkCoreModule

hi, could you provide some examples of the implementation? I am not sure where and how to add this

hi

You can change this static variable in Program.cs of all projects

AbpAuditLoggingDbProperties.DbSchema = "xxx" 

As I am using the microservice templeate, only HttpApi.Host contains the program.cs, add the static variable in here in enough?

UseAuditing()

hi, yes I have added this configuration and I found the log is actually inserted into the table with schema dbo dbo.[AbpAuditLogs] dbo.[AbpAuditLogActions] dbo.[AbpEntityChanges] dbo.[AbpEntityPropertyChanges]

Can I customize the schema of these tables? who to override AbpCommonDbProperties?

options.UseSqlServer();

Thank you so much. It resolved the error. However, when doing CRUD of the app service function, there is no record inserted to the AuditLog related tables. What else do I need to configure?

hi

Do you depend on the AbpAuditLoggingEntityFrameworkCoreModule on the EntityFrameworkCore layer?

Yes.

[DependsOn(
    typeof(AbpEntityFrameworkCoreSqlServerModule),
    typeof(AbpEntityFrameworkCoreModule),
    typeof(AbpAuditLoggingEntityFrameworkCoreModule)
)]


In ConfigureServices

Configure< AbpDbContextOptions>(options =>
{
    options.Configure< MyServiceDbContext>(c =>
    {
        c.UseSqlServer(b =>
        {
            b.MigrationsHistoryTable("__MyService_Migrations", MyServiceDbProperties.DbSchema);
        });
    });
});

I found it gets deleted, so I didn't see any records in the table.

In my local test, why is the event written to the outbox table only when I set "BatchPublishOutboxEvents" to false?

I found a solution.

https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services#overriding-a-service-class

hi

I wrote the following code to override the DefaultAzureBlobNameCalculator service, but it cannot enter the TestBlobNameCalculator/Calculate.

And throw error "Could not found the requested BLOB 'test.pdf' in the container 'TestContainer'!".

Did I miss something?

public class TestBlobNameCalculator : DefaultAzureBlobNameCalculator
{
    public TestBlobNameCalculator(ICurrentTenant currentTenant) : base(currentTenant)
    {
    }

    public override string Calculate(BlobProviderArgs args)
    {
        if (args.ContainerName == "testContainer")
        {c
            return args.BlobName;
        }

        return base.Calculate(args);
    }
}

OK, thank you.

Showing 1 to 10 of 16 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11