StellarAdmin is still in development. We'd love for you to try it out and get your feedback, but please be advised that you may run into bugs. Changes to public APIs may also occur.

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:

  1. The DbContextDataSource (available in the StellarAdmin.EntityFrameworkCore NuGet package) takes care of all interaction between StellarAdmin and your application's DbContext on your behalf. If you use Entity Framework in your application, then this should be you first choice.
  2. 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.