Open Closed

Regarding AppLitmusSetting Repository. #2236


User avatar
0
ChetanKumbhar created

Hi, I want to access AppLitmusSetting table in my code, I checked documents but could found that. Please help me out for access this table.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v4.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

1 Answer(s)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Hi @ChetanKumbhar

    ABP Framework and ABP Commercial don't have such a table AppLitmusSetting.

    As I can understand that is your application's table. So, if it's an AggregateRoot, you can use IRepository<LitmusSetting, Guid> do make operaitons on that table.

    If it's not an AggregateRoot, you should add repositories with includeAllEntities as true

    context.Services.AddAbpDbContext<FooDbContext>(options =>
    {
        options.AddDefaultRepositories(includeAllEntities: true);
    });
    

    Then you can use IRepository<LitmusSetting, Guid> to perform database operations on that table.

    Read more about repositories: https://docs.abp.io/en/abp/latest/Best-Practices/Repositories Read more about Entities & AggregateRoots: https://docs.abp.io/en/abp/latest/Entities

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11