MongoDB integration
MongoDB is a popular non-relational document database, which stores data in JSON-like documents rather than traditional row-/column-based tables.
The ABP CLI provides an option to create new applications using MongoDB, as shown here:
abp new FormsApp -d mongodb
If you want to check and change the database connection string, you can look at the appsettings.json
file of your application.
The MongoDB Client Package
ABP uses the official MongoDB.Driver
NuGet package for MongoDB integration.
In the next chapters, you will learn how to work with ABP's AbpMongoDbContext
class to define DbContext
objects, perform object-mapping configurations, register DbContext
objects with the DI system, and implement custom repositories when you want to extend the generic repositories for your entities.
We begin the MongoDB integration by defining a DbContext
class.
Defining DbContexts
The MongoDB driver package doesn't have a DbContext
concept like...