Skip to content
Discussion options

You must be logged in to vote

Hi @NickCc6, I've reproduced this on your repro and pushed a fix in #25570 — it'll ship in the next release. Root cause: the soft-delete DbFunction translator hardcodes the false literal with the bool TypeMapping, ignoring your HasConversion<int>(), so PostgreSQL emits is_deleted = FALSE against an int column.

Until the fix is released, you can re-register the DbFunction in your own OnModelCreating with the fixed translation — no need to disable UseDbFunction:

using System.Linq.Expressions;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Query.SqlExpressions;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.EntityFrameworkCore.GlobalFi…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@NickCc6
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by maliming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants