Skip to content

Commit b8fad92

Browse files
author
mnacmargaryan
committed
readme fix
1 parent ee8d83d commit b8fad92

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ Simplifies handling of update operations when working with PostgreSQL databases.
1111

1212
## Installation
1313
1. Install Pandatech.EFCore.PostgresExtensions Package
14-
Command: Install-Package Pandatech.EFCore.PostgresExtensions
14+
```Install-Package Pandatech.EFCore.PostgresExtensions```
1515

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+
```
2020
services.AddDbContext<MyDbContext>(options =>
2121
{
2222
options.UseNpgsql(Configuration.GetConnectionString("MyDatabaseConnection"))
2323
.UseQueryLocks();
2424
});
25-
25+
```
2626

2727
## Usage
2828
Use the provided ForUpdate extension method on IQueryable within your application to apply PostgreSQL-specific update syntax.
29-
29+
```
3030
using Pandatech.EFCore.PostgresExtensions;
3131
using Microsoft.EntityFrameworkCore;
3232
@@ -53,7 +53,7 @@ using (var transaction = _dbContext.Database.BeginTransaction())
5353
// Handle exception
5454
}
5555
}
56-
56+
```
5757
## License
5858

5959
Pandatech.EFCore.PostgresExtensions is licensed under the MIT License.

0 commit comments

Comments
 (0)