Skip to content

Commit 9ab73b6

Browse files
Merge pull request #4 from PandaTechAM/development
readme changed
2 parents 691a9f4 + fd604a5 commit 9ab73b6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Readme.md

+8
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
6060
}
6161
```
6262

63+
And you need to call UseQueryLocks() inside AddDbContext or AddDbContextPool , this needs for enabling ForUpdate feature.
64+
65+
```csharp
66+
builder.Services.AddDbContextPool<PostgresContext>(options =>
67+
options.UseNpgsql(connectionString)
68+
.UseQueryLocks());
69+
```
70+
6371
Service Registration: Register essential services on startup, specifying the DbContext type.
6472
You can optionally override settings(its optional parameter).
6573

src/MassTransit.PostgresOutbox/MassTransit.PostgresOutbox.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<PackageReadmeFile>Readme.md</PackageReadmeFile>
99
<Authors>Pandatech</Authors>
1010
<Copyright>MIT</Copyright>
11-
<Version>1.0.1</Version>
11+
<Version>1.0.2</Version>
1212
<PackageId>Pandatech.MassTransit.PostgresOutbox</PackageId>
1313
<Title>Pandatech MassTransit PostgreSQL Outbox Extension</Title>
1414
<PackageTags>Pandatech, library, postgres, distributed systems, microservices, modular monolith, messaging, efcore, mass transit, outbox pattern, inbox pattern</PackageTags>

0 commit comments

Comments
 (0)