From 3fdc708867ed37768b4f410805648420540e2e77 Mon Sep 17 00:00:00 2001 From: Haik <106117370+HaikAsatryan@users.noreply.github.com> Date: Fri, 29 Mar 2024 16:21:48 +0400 Subject: [PATCH] Update Readme.md Signed-off-by: Haik <106117370+HaikAsatryan@users.noreply.github.com> --- Readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index cea236d..4a15274 100644 --- a/Readme.md +++ b/Readme.md @@ -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(options => { options.UseNpgsql(Configuration.GetConnectionString("MyDatabaseConnection")) @@ -26,7 +26,7 @@ services.AddDbContext(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; @@ -56,4 +56,4 @@ using (var transaction = _dbContext.Database.BeginTransaction()) ``` ## License -Pandatech.EFCore.PostgresExtensions is licensed under the MIT License. \ No newline at end of file +Pandatech.EFCore.PostgresExtensions is licensed under the MIT License.