You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pandatech.EFCore.PostgresExtensions is a NuGet package that enhances Entity Framework Core with support for PostgreSQL-specific syntax for update operations.
You can install the Pandatech.EFCore.PostgresExtensions NuGet package via the NuGet Package Manager UI or the Package Manager Console using the following command:
14
+
# 1. Pandatech.EFCore.PostgresExtensions
15
+
16
+
Pandatech.EFCore.PostgresExtensions is an advanced NuGet package designed to enhance PostgreSQL functionalities within
17
+
Entity Framework Core, leveraging specific features not covered by the official Npgsql.EntityFrameworkCore.PostgreSQL
18
+
package. This package introduces optimized row-level locking mechanisms and an efficient, typed version of the
19
+
PostgreSQL COPY operation, adhering to EF Core syntax for seamless integration into your projects.
20
+
21
+
## 1.1. Features
22
+
23
+
1.**Row-Level Locking**: Implements the PostgreSQL `FOR UPDATE` feature, providing three lock
24
+
behaviors - `Wait`, `Skip`, and
25
+
`NoWait`, to facilitate advanced transaction control and concurrency management.
26
+
2.**Npgsql COPY Integration**: Offers a high-performance, typed interface for the PostgreSQL COPY command, allowing for
27
+
bulk data operations within the EF Core framework. This feature significantly enhances data insertion speeds and
28
+
efficiency.
29
+
30
+
## 1.2. Installation
31
+
32
+
To install Pandatech.EFCore.PostgresExtensions, use the following NuGet command:
Configure your DbContext to use Npgsql and enable query locks:
17
43
18
-
Inside the AddDbContext or AddDbContextPool method, after calling UseNpgsql(), call the UseQueryLocks() method on the DbContextOptionsBuilder to enable query locks.
<PackageTags>Pandatech, library, EntityFrameworkCore, PostgreSQL, For Update, Lock, LockingSyntax</PackageTags>
15
-
<Description>The Pandatech.EFCore.PostgresExtensions library enriches Entity Framework Core applications with advanced PostgreSQL functionalities, starting with the ForUpdate locking syntax. Designed for seamless integration, this NuGet package aims to enhance the efficiency and capabilities of EF Core models when working with PostgreSQL, with the potential for further PostgreSQL-specific extensions.</Description>
<Description>The Pandatech.EFCore.PostgresExtensions library enriches Entity Framework Core applications with advanced PostgreSQL functionalities, starting with the ForUpdate locking syntax and BulkInsert function. Designed for seamless integration, this NuGet package aims to enhance the efficiency and capabilities of EF Core models when working with PostgreSQL, with the potential for further PostgreSQL-specific extensions.</Description>
0 commit comments