Skip to content

Possible NH issue taking liberties with PG IUserType #3718

@mwpowellhtx

Description

@mwpowellhtx

See the issue here, I start there because the exception is being thrown, somehow or other Npgsql is seeing my IUserType as though it was DbType.UInt64. However, as I explained in the issue, we are doing no such thing training the user type as such, rather we explicitly want DbType.Decimal mapped against the database NpgsqlDbType.Numeric. Have set breakpoints in the user type during the NullSafeSet and see ZERO evidence that any ulong ever crosses its threshold. The only other thing possible interceding in our mapping behalf is NH in that instance; or technically we are using Fluent NHibernate to facilitate mapping, but that is neither here nor there, because the issues being thrown are driver level.

Been up and down several of the dotnet CSharp and NH forums and no one seems to be finding this. But it is a block, we need for this to work correctly. I don't think it will be a matter of efcore versus NH or FNH, assuming it is somehow a database, dialect, or other type of issue. Could be wrong, assuming what else is going on in the NH layers.

Would be happy to jump on a discord screen share or something similar to try and diagnose the issue further.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions