Skip to content

Commit 3fdc708

Browse files
authored
Update Readme.md
Signed-off-by: Haik <[email protected]>
1 parent b8fad92 commit 3fdc708

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Simplifies handling of update operations when working with PostgreSQL databases.
1616
2. Enable Query Locks
1717

1818
Inside the AddDbContext or AddDbContextPool method, after calling UseNpgsql(), call the UseQueryLocks() method on the DbContextOptionsBuilder to enable query locks.
19-
```
19+
```csharp
2020
services.AddDbContext<MyDbContext>(options =>
2121
{
2222
options.UseNpgsql(Configuration.GetConnectionString("MyDatabaseConnection"))
@@ -26,7 +26,7 @@ services.AddDbContext<MyDbContext>(options =>
2626

2727
## Usage
2828
Use the provided ForUpdate extension method on IQueryable within your application to apply PostgreSQL-specific update syntax.
29-
```
29+
```csharp
3030
using Pandatech.EFCore.PostgresExtensions;
3131
using Microsoft.EntityFrameworkCore;
3232

@@ -56,4 +56,4 @@ using (var transaction = _dbContext.Database.BeginTransaction())
5656
```
5757
## License
5858

59-
Pandatech.EFCore.PostgresExtensions is licensed under the MIT License.
59+
Pandatech.EFCore.PostgresExtensions is licensed under the MIT License.

0 commit comments

Comments
 (0)