Skip to content

Commit 54f9f8b

Browse files
Replace master branch references with main
Update CI workflow, README links, and CLAUDE.md to reference the new main branch instead of master. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 90a4841 commit 54f9f8b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565

6666
prerelease:
6767
needs: build
68-
if: github.ref == 'refs/heads/master'
68+
if: github.ref == 'refs/heads/main'
6969
runs-on: ubuntu-latest
7070
steps:
7171
- name: Download Artifact

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dotnet build EntityFrameworkCore.Triggered.Samples.slnf
3333
The repo supports 3 major versions via `$(EFCoreTriggeredVersion)` in `Directory.Build.props`:
3434
- **V1**: EF Core 3.1, `netstandard2.0`, config `ReleaseV1`/`DebugV1`
3535
- **V2**: EF Core 5.0, `netstandard2.1`, config `ReleaseV2`/`DebugV2`
36-
- **V3** (current branch): EF Core 6.0+, `net6.0`, config `Release`/`Debug`
36+
- **V3**: EF Core 6.0+, `net6.0`, config `Release`/`Debug`
3737

3838
Source files use `#if` directives with `EFCORETRIGGERED_V1`, `EFCORETRIGGERED_V2`, `EFCORETRIGGERED_V3` for version-specific code.
3939

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This is the [AutoGuru](https://github.com/autoguru-au)-maintained fork, targetin
1717
1. Install the package from [NuGet](https://www.nuget.org/packages/AutoGuru.EntityFrameworkCore.Triggered)
1818
2. Write triggers by implementing `IBeforeSaveTrigger<TEntity>` and `IAfterSaveTrigger<TEntity>`
1919
3. Register your triggers with your DbContext
20-
4. View our [samples](https://github.com/autoguru-au/EntityFrameworkCore.Triggered/tree/master/samples)
20+
4. View our [samples](https://github.com/autoguru-au/EntityFrameworkCore.Triggered/tree/main/samples)
2121
5. Check out our [wiki](https://github.com/autoguru-au/EntityFrameworkCore.Triggered/wiki) for tips and tricks on getting started and being successful.
2222

2323
> This fork targets .NET 9 / EF Core 9. Triggers are invoked automatically via EF Core's `ISaveChangesInterceptor`.
@@ -211,7 +211,7 @@ catch {
211211
In this example we were not able to inherit from TriggeredDbContext since we want to manually control the TriggerSession
212212

213213
### Custom trigger types
214-
By default we offer 3 trigger types: `IBeforeSaveTrigger`, `IAfterSaveTrigger` and `IAfterSaveFailedTrigger`. These will cover most cases. In addition we offer `IRaiseBeforeCommitTrigger` and `IRaiseAfterCommitTrigger` as an extension to further enhance your control of when triggers should run. We also offer support for custom triggers. Let's say we want to react to specific events happening in your context. We can do so by creating a new interface `IThisThingJustHappenedTrigger` and implementing an extension method for `ITriggerSession` to invoke triggers of that type. Please take a look at how [Transactional triggers](https://github.com/autoguru-au/EntityFrameworkCore.Triggered/tree/master/src/EntityFrameworkCore.Triggered.Transactions) are implemented as an example.
214+
By default we offer 3 trigger types: `IBeforeSaveTrigger`, `IAfterSaveTrigger` and `IAfterSaveFailedTrigger`. These will cover most cases. In addition we offer `IRaiseBeforeCommitTrigger` and `IRaiseAfterCommitTrigger` as an extension to further enhance your control of when triggers should run. We also offer support for custom triggers. Let's say we want to react to specific events happening in your context. We can do so by creating a new interface `IThisThingJustHappenedTrigger` and implementing an extension method for `ITriggerSession` to invoke triggers of that type. Please take a look at how [Transactional triggers](https://github.com/autoguru-au/EntityFrameworkCore.Triggered/tree/main/src/EntityFrameworkCore.Triggered.Transactions) are implemented as an example.
215215

216216
### Async triggers
217217
Async triggers are fully supported, though you should be aware that if they are fired as a result of a call to the synchronous `SaveChanges` on your DbContext, the triggers will be invoked and the results waited for by blocking the caller thread as discussed [here](https://github.com/autoguru-au/EntityFrameworkCore.Triggered/issues/127). This is known as the sync-over-async problem which can result in deadlocks. It's recommended to use `SaveChangesAsync` to avoid the potential for deadlocks, which is also best practice anyway for an operation that involves network/file access as is the case with an EF Core read/write to the database.

0 commit comments

Comments
 (0)