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.