Browse
Sample.Lib
.mdpackage
Sample.Lib
1.2.3Sample library used to test mdnet.
mdnet contributors·MIT·8 types·Repository ↗
net10.0#sample#docs
A tiny data-access library used to exercise every part of mdnet.
Getting started
Register the context and resolve repositories. See the design notes or the Markdoc docs.
# not a heading
var repository = new EntityFrameworkRepository<Order>(context);Core.Data
- DbContext
A minimal unit of work that tracks entity changes.
- Money
An immutable amount of money in a specific currency.
- MoneyExtensions
Extension methods for
Money.
Repositories
Generic repositories over DbContext, with specifications for queries.
- ChangeKind
Describes how an entity changed.
- EntityChangedEventArgs<TEntity>
Provides data for entity lifecycle events.
- EntityFrameworkRepository<TEntity>
A generic repository implementation using Entity Framework Core to perform standard CRUD operations.
- IRepository<TEntity>
Defines the standard data access operations for an aggregate.
- ISpecification<T>
Encapsulates query criteria for
T.