Skip to content

Releases: win7user10/Laraue.EfCoreTriggers

Oracle provider added

06 Feb 10:20

Choose a tag to compare

What's Changed

Full Changelog: 10.1.0...10.4.0

EFCore 10 support

08 Dec 17:39

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 8.0.0...10.0.0

What's Changed

Full Changelog: 10.0.0...10.1.0

EFCore 8 support

24 Nov 10:21

Choose a tag to compare

8.0.0

update yaml

5.5.1

26 Jul 10:57
a3433b1

Choose a tag to compare

Fix date time offset generation for Postgres

Trigger API has been updated

15 Apr 17:25
b5a4fe9

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

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

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

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

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

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