Activities of "maliming"

hi Maybe it is using System;

hi

You can consider replacing the services in the Volo.Abp.BackgroundJobs.HangFire package.

https://github.com/abpframework/abp/tree/dev/framework/src/Volo.Abp.BackgroundJobs.HangFire/Volo/Abp/BackgroundJobs/Hangfire

using Volo.Abp.Domain.Entities;

hi @kirtik

The png you shared is not clear. Can you share the text?

hi

If changing the route of APi will break the angular package etc, I suggest you always change your own api instead of the module.

Another question is, when I use swagger to make the request, then in method AssignRoleToCurrentUser I see that currentUser is totally empty. How to fix that to get the currentUser?

Have you logged in and get the token in swagger ?

https://github.com/abpframework/abp/pull/6124

hi

There is no function related to JSON serialization in abp's hangfire.

Maybe you can create a service to handle JSON serialization/deserialization.

Answer

hi @alexander.nikonov

Can you use the template project to reproduce the problem and share it with me? liming.ma@volosoft.com

Answer

The reason for this situation may be that the __EFMigrationsHistory table is empty after the first execution of DBMigrator.

hi kirtik

You can try this.

protected override void OnModelCreating(ModelBuilder builder)
{
	base.OnModelCreating(builder);

	/* Include modules to your migration db context */

	builder.ConfigurePermissionManagement();
	builder.ConfigureSettingManagement();
	builder.ConfigureBackgroundJobs();
	builder.ConfigureAuditLogging();
	builder.ConfigureIdentity();
	builder.ConfigureIdentityServer();
	builder.ConfigureFeatureManagement();
	builder.ConfigureTenantManagement();
	builder.UseCosmos();


	/* Configure your own tables/entities inside the ConfigureBookStore method */

	builder.ConfigureBookStore();

	foreach (var entityType in builder.Model.GetEntityTypes())
	{
		ConfigureETagConcurrency(builder, entityType);
	}
}

private void ConfigureETagConcurrency(ModelBuilder modelBuilder, IMutableEntityType mutableEntityType)
{
	if (mutableEntityType.IsOwned())
	{
		return;
	}

	if (!typeof(IEntity).IsAssignableFrom(mutableEntityType.ClrType))
	{
		return;
	}

	var entityTypeBuilder = modelBuilder.Entity(mutableEntityType.ClrType);

	if (entityTypeBuilder.Metadata.ClrType.IsAssignableTo<IHasConcurrencyStamp>())
	{
		entityTypeBuilder.Property(nameof(IHasConcurrencyStamp.ConcurrencyStamp))
			.IsETagConcurrency()
			.HasMaxLength(ConcurrencyStampConsts.MaxLength)
			.HasColumnName(nameof(IHasConcurrencyStamp.ConcurrencyStamp));
	}
}
Showing 8291 to 8300 of 8468 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11