Releases: Centeva/Centeva.DomainModeling
v11.0.0
See the Upgrade Guide for migration details.
What's Changed
- Nuget Package Updates by @lonnieholcombe in #76
- Migrate sln, remove obsolete code by @pdeffendol in #77
- WIP: Remove hard dependency on MediatR by @pdeffendol in #78
- Run Actions on public runners and .NET 10 by @pdeffendol in #79
- Bump gittools/actions from 2 to 3 by @dependabot[bot] in #58
- Update all Actions by @pdeffendol in #83
- Update tests by @pdeffendol in #84
- Final cleanup for 11.0 by @pdeffendol in #85
- Bump xunit.v3 from 3.2.0 to 3.2.1 by @dependabot[bot] in #87
New Contributors
- @lonnieholcombe made their first contribution in #76
Full Changelog: v10.2.0...v11.0.0
v10.2.0
What's Changed
Added an EF Core interceptor for dispatching events by @pdeffendol in #60
This should replace manual setup of domain event dispatching in your DbContext. Add the interceptor when registering your application's services:
// ...
builder.Services
.AddMediatR(configuration => configuration.RegisterServicesFromAssemblyContaining<Program>())
.AddSingleton<IDomainEventDispatcher, MediatRDomainEventDispatcher>();
// ...
builder.Services.AddSingleton<DispatchDomainEventsInterceptor>();
builder.Services.AddDbContext<ApplicationDbContext>((sp, options) =>
{
options.AddInterceptors(sp.GetRequiredService<DispatchDomainEventsInterceptor>());
options.UseSqlServer(connectionString);
});
// ...Full Changelog: v10.1.0...v10.2.0
v10.1.0
This only adds SourceLink support so that users can easily view the source code for types in this library.
Full Changelog: v10.0.0...v10.1.0
v10.0.0
Namespace Consolidation
All of the interfaces and classes in the Centeva.DomainModeling package now
reside in the Centeva.DomainModeling namespace. This means that you will need
to update your using statements to reflect this change.
Improved Repository Extensibility
Sometimes your project needs to override the default behavior of the Repository
implementation.
The _dbContext property of the BaseRepository class has been changed from
private to protected to allow you to access it from your own inherited
implementations. You are cautioned to avoid exposing DbContext and
IQueryable to application code.
Removal of AutoMapper project support
The Centeva.DomainModeling.EFCore.AutoMapper package has been removed, as we no
longer encourage use of AutoMapper on our projects. You can easily make your
own by extending the base interfaces and implementation if needed.
What's Changed
- Consolidate all types to a single namespace by @pdeffendol in #23
- In Actions, install .NET to a custom folder by @pdeffendol in #28
- Update packages by @pdeffendol in #29
- Revert repository interface rename from bcb39c2 by @pdeffendol in #27
- Bump coverlet.collector from 6.0.0 to 6.0.2 by @dependabot in #32
- Bump gittools/actions from 0 to 1 by @dependabot in #31
- Bump Microsoft.EntityFrameworkCore.Sqlite from 8.0.2 to 8.0.3 by @dependabot in #33
- Bump xunit from 2.7.1 to 2.8.0 by @dependabot in #37
- Bump xunit.runner.visualstudio from 2.5.8 to 2.8.0 by @dependabot in #38
- Bump MediatR from 12.2.0 to 12.3.0 by @dependabot in #43
- Bump gittools/actions from 1 to 2 by @dependabot in #48
Full Changelog: v9.0.0...v10.0.0