Releases: koenbeuk/EntityFrameworkCore.Triggered
v4.0.0-preview.1
This is a preview release of v4 with breaking changes.
With the upcoming v4 release, we introduce synchronous triggers. You can now implement IBeforeSaveTrigger<MyEntity>
and/or IBeforeSaveTriggerAsync<MyEntity>
. (Same goes for other trigger types). Synchronous triggers are still called within an async context however asynchronous triggers are never called in an async context.
What's Changed
- Introducting synchronous triggers. by @koenbeuk in #161
- Fix for #154 by @cjblomqvist in #163
- Get DbContext/Entry straight from the trigger context by @koenbeuk in #159
- Ensure that we delist the trigger session on exception in the BeforeSave cycle by @koenbeuk in #169
- Include a nuget package readme by @koenbeuk in #165
- Updated readme by @koenbeuk in #172
New Contributors
- @cjblomqvist made their first contribution in #163
Full Changelog: v3.2.0...v4.0.0-preview.1
v3.2.2
v3.2.1
v3.2.0
What's Changed
- Fixed a possible memory leak caused by exceptions from pooled DB contexts by @koenbeuk in #147
- Fixed registration of multiple triggers of a shared type through ServiceCollectionExtensions by @koenbeuk in #148
- Removed inaccurate exception causing Autofac integration issues by @koenbeuk in #152
Full Changelog: v3.1.0...v3.2.0
v3.2.0-preview.3
Fixed a release issue
Full Changelog: v3.2.0-preview.2...v3.2.0-preview.3
v3.2.0-preview.2
What's Changed
Full Changelog: v3.2.0-preview.1...v3.2.0-preview.2
v3.2.0-preview.1
What's Changed
- Fixed a possible memory leak caused by exceptions from pooled DB contexts by @koenbeuk in #147
- Fixed registration of multiple triggers of a shared type through ServiceCollectionExtensions by @koenbeuk in #148
Full Changelog: v3.1.0...v3.2.0-preview.1
v3.1.0
What's Changed
- Add note about sync-over-async by @benmccallum in #129
- Changed scope of db context factory to no longer be hard-coded to Scoped by @cdimitroulas in #136
- Fix for internally registered triggers with a Scoped lifetime by @koenbeuk in #139
- Removed V1/V2 support by @koenbeuk in #141
- Added AddTriggeredDbContextPool overload that accepts an additional contract type by @koenbeuk in #144
New Contributors
- @cdimitroulas made their first contribution in #136
Full Changelog: v3.0.0...v3.1.0
v3.1.0-beta.1
What's Changed
- Add note about sync-over-async by @benmccallum in #129
- Changed scope of db context factory to no longer be hard-coded to Scoped by @cdimitroulas in #136
- Fix for internally registered triggers with a Scoped lifetime by @koenbeuk in #139
- Removed V1/V2 support by @koenbeuk in #141
- Added AddTriggeredDbContextPool overload that accepts an additional contract type by @koenbeuk in #144
New Contributors
- @cdimitroulas made their first contribution in #136
Full Changelog: v3.0.0...v3.1.0-beta.1
v3.0.0
Starting from this release we target EF Core 6.
Triggers are now able to attach state to an Entity through the newly added Items property exposed on the trigger context. This enables advanced scenarios such as preserving entity state between different lifecycles within a trigger and communication between triggers regarding a specific entity.
In addition, each trigger session is now configurable. (A trigger session automatically gets created and disposed of by default at the start and end respectively of a call to dbContext.SaveChanges()). This includes the ability to disable triggers altogether.
What's Changed
- readme tidying by @benmccallum in #109
- AddAssemblyTriggers now ignores Abstract classes by @koenbeuk in #112
- Trigger service configuration by @koenbeuk in #117
- Trigger entity state management by @koenbeuk in #115
- EF Core 6 support by @koenbeuk in #121
- Updated builds by @koenbeuk in #123
New Contributors
- @benmccallum made their first contribution in #109
Full Changelog: v2.3.2...v3.0.0