What problem does it solve?
This Skill solves the challenge of implementing MongoDB support in an ABP Framework v10.4 application with the correct DbContext setup, collection mapping, and repository patterns.
Core Features & Use Cases
- MongoDbContext integration: Configure
AbpMongoDbContext via IMongoModelBuilder, register the context in DI, and map entities to MongoDB collections.
- Collection mapping & indexing: Define collection names, ignore properties, and configure collation and index models inside
CreateModel.
- Repositories, transactions, and advanced patterns: Use default repositories, add custom MongoDB repositories, handle transactions (replica set required), and apply patterns like
ReplaceDbContext, bulk operation customization, and multi-tenancy connection strategies.
Quick Start
Ask the AI to generate a complete ABP MongoDB setup for a MyMongoDbContext that maps Question and Category, configures an index, registers default repositories, and includes a custom repository method for a filtered delete.