Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
Signed-off-by: Haik <106117370+HaikAsatryan@users.noreply.github.com>
  • Loading branch information
HaikAsatryan authored Mar 29, 2024
1 parent b8fad92 commit 3fdc708
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Simplifies handling of update operations when working with PostgreSQL databases.
2. Enable Query Locks

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

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

Expand Down Expand Up @@ -56,4 +56,4 @@ using (var transaction = _dbContext.Database.BeginTransaction())
```
## License

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

0 comments on commit 3fdc708

Please sign in to comment.