Skip to content

Releases: Centeva/Centeva.DomainModeling

v11.0.1

Choose a tag to compare

@pdeffendol pdeffendol released this 27 May 21:41

From a functionality standpoint, this release only contains package updates and resolves a transitive package vulnerability.

Full Changelog: v11.0.0...v11.0.1

v11.0.0

Choose a tag to compare

@pdeffendol pdeffendol released this 15 Dec 22:49

See the Upgrade Guide for migration details.

What's Changed

New Contributors

Full Changelog: v10.2.0...v11.0.0

v10.2.0

Choose a tag to compare

@pdeffendol pdeffendol released this 07 Dec 15:17

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

Choose a tag to compare

@pdeffendol pdeffendol released this 05 Sep 16:38

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

Choose a tag to compare

@pdeffendol pdeffendol released this 04 Sep 22:33

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

Full Changelog: v9.0.0...v10.0.0