Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"FOR UPDATE" hint not applied when using WithHint in .NET 9 with Npgsql #823

Closed
houstonidze opened this issue Jan 17, 2025 · 2 comments
Closed
Assignees

Comments

@houstonidze
Copy link

I tried Z.EntityFramework.Plus.EFCore with and Npgsql.EntityFrameworkCore.PostgreSQL
like this:
var items = await dbContext.Set<Items>().WithHint("FOR UPDATE").ToListAsync()

but query log shows that query is "SELECT * from items" without FOR UPDATE

ENV
Z.EntityFramework.Plus.EFCore version: 9.103.6.4
.NET version: 9
Database provider: Npgsql.EntityFrameworkCore.PostgreSQL v9
Database: PostgreSQL

Does Z.EntityFramework.Plus.EFCore hint support postgres?

@xkissboss
Copy link

xkissboss commented Jan 17, 2025 via email

@JonathanMagnan JonathanMagnan self-assigned this Jan 17, 2025
@JonathanMagnan
Copy link
Member

Hello @houstonidze ,

Unfortunately this feature is only available for SQL Server at this moment. So, indeed, it doesn't work for PostgreSQL.

Best Regards,

Jon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants