Open Closed

How to config ABP file management in database without source code? #2137


User avatar
0
LawrenceKwan created

How to config ABP file management in database without source code? I saw a lot on config this module but I dont have the source code of the module

  • ABP Framework version: v4.4.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

14 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    HI,

    Are you talking about custom database tables?

    See: https://docs.abp.io/en/abp/4.4/Entity-Framework-Core#mapefcoredbcontext

    Example:

    ObjectExtensionManager.Instance.MapEfCoreDbContext<FileManagementDbContext>(b =>
    {
        //....
    });
    
  • User Avatar
    0
    LawrenceKwan created

    HI,

    Are you talking about custom database tables?

    See: https://docs.abp.io/en/abp/4.4/Entity-Framework-Core#mapefcoredbcontext

    Example:

    ObjectExtensionManager.Instance.MapEfCoreDbContext<FileManagementDbContext>(b => 
    { 
        //.... 
    }); 
    

    Hello, I am talking the file management module , how to config Setting BLOB Provider in the case without the source code(nuget only)? https://docs.abp.io/en/commercial/latest/modules/file-management

    In default, I am using fake BLOB provider, how can I set it to the database one?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Yes you can. see: https://docs.abp.io/en/commercial/latest/modules/file-management#setting-blob-provider

    May I konw which BLOB Provider is in default?

    The default file management module does not use any BLOB providers, you need to set it manually.

    There are BLOB providers:https://docs.abp.io/en/abp/latest/Blob-Storing#blob-storage-providers, you can choose what you need.

  • User Avatar
    0
    LawrenceKwan created

    Hi,

    Yes you can. see: https://docs.abp.io/en/commercial/latest/modules/file-management#setting-blob-provider

    May I konw which BLOB Provider is in default?

    The default file management module does not use any BLOB providers, you need to set it manually.

    There are BLOB providers:https://docs.abp.io/en/abp/latest/Blob-Storing#blob-storage-providers, you can choose what y

    I have follow the instruction but the database cannot be configurated, any advice on which part I have missed?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Did you install the BLOB database provider module? See: https://docs.abp.io/en/abp/latest/Blob-Storing-Database

  • User Avatar
    0
    LawrenceKwan created

    Hi,

    Did you install the BLOB database provider module? See: https://docs.abp.io/en/abp/latest/Blob-Storing-Database

    I have did it before and also found the ef core version is older then 5.0.12, dit it need to be update too?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi, The message just a warn, there is no problem.

  • User Avatar
    0
    LawrenceKwan created

    Hi, The message just a warn, there is no problem.

    Still cannot do it

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can you try add using namespace? using Volo.Abp.BlobStoring.Database. PS: please do it in the DomainModule class

  • User Avatar
    0
    LawrenceKwan created

    Hi,

    Can you try add using namespace? using Volo.Abp.BlobStoring.Database. PS: please do it in the DomainModule class

    Hello, I can do it in MyProjectDomainModule class,and may I know where table of the file info storing into by default or I need to fully config it before I use?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    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

  • User Avatar
    0
    LawrenceKwan created

    Can it be configed to become multi database without module source code?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    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

  • User Avatar
    0
    LawrenceKwan created

    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

    Thanks for your effort.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09