Activities of "liangshiwei"

BTW, I recommend that you install Volo.Abp.BackgroundWorkers.HangFire package in the startup project(.MVC, .HttpApi.Host etc..). this way it does not affect the DbMigrator project.

Hi,

I'm sorry for that, yes the DBMigrator is used to create a database and tables.

But it is only used to create ABP's database tables, not Hangfire.

It looks like that Hangfire will prioritize execution and break the application, but this is designed by hangfire, I recommend you to use the second database for Hangfire server.

If you want to use DBMigrator to create both an application database and a hangfire database, you need to do some extra things.

For example:

private string GetHangfireConnectionString()
{
    // Server=(LocalDb)\\MSSQLLocalDB;Database={0};Trusted_Connection=True
    var connectionStringFormat = configuration.GetConnectionString("Hangfire");
    // Hangfire
    var dbName = configuration["HangfireDbName"];

    using (var connexion = new SqlConnection(string.Format(connectionStringFormat, "master")))
    {
        connexion.Open();

        using (var command = new SqlCommand(string.Format(
            @"IF NOT EXISTS (SELECT name FROM sys.databases WHERE name = N'{0}') 
                            create database [{0}];
              ", dbName), connexion))
        {
            command.ExecuteNonQuery();
        }
    }

    return string.Format(connectionStringFormat, dbName);
}

var connectionString = GetHangfireConnectionString();
GlobalConfiguration.Configuration.UseSqlServerStorage(connectionString); 

Hi,

Sorry, I didn't get it, can you explain it in detail?

Hi,

Can you share a simple project? shiwei.liang@volosoft.com

Hi

>We started a complete new project using ABP Suite 5.2 and even without the DisplayAttribute this project is fast and responsive.

Great to hear it.

but you know the project is complicated, problems can arise for many reasons(maybe a small reason), it's hard to find them. you can keep moving code to the new project and checking performance.

Hi,

I think you should create a database first, hangfire will not create a database for you.

See: https://github.com/HangfireIO/Hangfire/blob/master/src/Hangfire.SqlServer/Install.sql

Hi,

Can you share a project that can reproduce the problem with me? shiwei.liang@volosoft.com Thanks

Hi,

How do I reproduce the problem? can you provide the steps? thanks.

Hi.

Add these files to your project:

Hi,

You should use Blazor component instead of tag helper.

See: https://blazorise.com/docs/components/select

Showing 5131 to 5140 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.