Skip to content

Releases: win7user10/Laraue.EfCoreTriggers

EFCore 8 support

24 Nov 10:21
Compare
Choose a tag to compare
8.0.0

update yaml

5.5.1

26 Jul 10:57
a3433b1
Compare
Choose a tag to compare

Fix date time offset generation for Postgres

Trigger API has been updated

15 Apr 17:25
b5a4fe9
Compare
Choose a tag to compare

New triggers API

The main difference is related to the way of relating to the old and new rows in a trigger.
Early each reference was in its own parameter
.Insert<UserBalance>((oldRow, newRow) => new MyEntity { Value = oldRow.Value + newRow.Value }
now the one variable contains all references
.Insert<UserBalance>(tableRefs => new MyEntity { Value = tableRefs .Old.Value + tableRefs.New.Value }

Update Upsert and InsertIfNotExists API

The next updates are related to the changed Upsert and InsertIfNotExists API. Now they consume predicates as the first parameter instead of NewExpression, which sounds more logical.
Early
.Upsert(deletedTransaction => new UserBalance { UserId = deletedTransaction.UserId } ..)
and now
.Upsert((tableRefs, balances) => tableRefs.Old.UserId == balances.UserId, ..)

Configuring trigger prefix

Not the trigger prefixes can be changed via te next static parameter
Laraue.EfCoreTriggers.Common.Constants.AnnotationKey = "MY_PREFIX"

Support of string enum values

29 Oct 10:06
75fc5ef
Compare
Choose a tag to compare

What's Changed

Full Changelog: 5.3.8...6.4.1

Count expression on related entity support added

02 Mar 19:58
44c9a38
Compare
Choose a tag to compare

Added translation of count expressions:
Without predicate e.g. Entity.SubEntites.Count()
With predicate e.g. Entity.SubEntites.Count(x => x.SubValue > 2)

Support of inheritance

16 Feb 16:36
57f0b42
Compare
Choose a tag to compare

What's Changed

API Changes

Registering custom method call converters changed, see the documentation

Full Changelog: v6.1.0...6.2.0

Support of raw SQL triggers

22 Nov 15:54
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.1.0...v6.1.0

Math and String expressions support

27 Sep 10:29
e2d9004
Compare
Choose a tag to compare

feat: math expressions support
feat: string expressions support
feat: new syntax for Upsert and InsertIfNotExists (the last parameter now consumes object of TUpsert type instead of object)
feat: new tests structure, a lot of test cases added and fixes for them made

Added strings EndsWith, Trim and Contains translations

22 Aug 09:50
Compare
Choose a tag to compare

Release contains newly extendable architecture for database providers and translation of some string functions to SQL.

Cast expressions support

23 Feb 19:19
Compare
Choose a tag to compare

fix(Issue#3): Exception while using enum properties
fix: Incorrect amount of arguments in InsertAfterUpdate trigger
feat: Support of generating cast expressions
feat: Support of new Guid() expressions
cleanup && some code comments