Defining the data source for your resource
Overview
A resource's data source acts as the interface between StellarAdmin and your application's data store. StellarAdmin comes with two data sources out of the box, namely:
- The
DbContextDataSource
(available in theStellarAdmin.EntityFrameworkCore
NuGet package) takes care of all interaction between StellarAdmin and your application'sDbContext
on your behalf. If you use Entity Framework in your application, then this should be you first choice. - The
DelegateDataSource
allows you to specify the interaction between StellarAdmin and your data store through callback methods. This is a good choice when you use a data access technology other than Entity Framework Core.