Activities of "liangshiwei"

Hi,

Can also you try and create&apply migration file:

builder.ConfigureLanuageManagement(options => {options.TablePrefix= "";});

We have remove ModelBuilderConfigurationOptions classes in the 5.0, but in the 4.4 you need to use both.

Hi,

Sorry I'm late, I'm just on vacation.

It looks like you are createing CSV files in the JS, I think there is no problem.

But you want export Excel instead of CSV, you need to return file stream in the Controller.

Example:

public IActionResult ExportExcel()
{
    string contentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
    string fileName = "Report.xlsx";

    var workbook = new XLWorkbook();
    IXLWorksheet worksheet = workbook.Worksheets.Add("sheet1");

    //.....
    
    using (var stream = new MemoryStream())
    {
        workbook.SaveAs(stream);
        var content = stream.ToArray();
        return File(content, contentType, fileName);
    }
}

Reopen if still question.

Reopen if still question.

Hi,

Sorry I don't know what is available example mean, we have done it in the Blogging module and you can check the source code.

Hi,

Make sure your MongoDB supports transcation.

Or disable transactions:

Configure<AbpUnitOfWorkDefaultOptions>(options =>
{
    options.TransactionBehavior = UnitOfWorkTransactionBehavior.Disabled;
});

Hi,

You can configure foreign keys manually: https://docs.microsoft.com/en-us/ef/core/modeling/relationships?tabs=fluent-api,fluent-api-simple-key,simple-key#foreign-key

Hi,

Can you check the article? https://tsafadi.medium.com/download-a-file-with-asp-net-core-e23e8b198f74

Hi,

You want to store the files in a separate database right?

You can do it, we have an exmaple: https://github.com/abpframework/abp-samples/tree/master/EfCoreMigrationDemo

I need to fully config it before I use?

You don't need to config it,

See : https://docs.abp.io/en/abp/latest/Blob-Storing-Database#additional-information

The file content is stored in table DatabaseBlob

Or you can check the source code: https://github.com/abpframework/abp/tree/dev/modules/blob-storing-database

Showing 5391 to 5400 of 6687 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13