Norm.net icon indicating copy to clipboard operation
Norm.net copied to clipboard

Can't map null value to non-nullable property (which is nullable)

Open goncalo-oliveira opened this issue 8 months ago • 4 comments

.NET 8
Norm.net 5.4.0
PostgreSQL 15.1 (Ubuntu 15.1-1.pgdg20.04+1) on aarch64-unknown-linux-gnu

Hi,

I'm seeing the following mapping error

Can't map null value for database field "claims" to non-nullable property "Claims".

Except that the Claims property is actually nullable, so the mapping should have worked I think.

The claims field in the database is an array and it is NULL at this point, yes.

claims text[] null,

In the same way, the class property is a nullable array

public string[]? Claims { get; set; }

Am I missing something?

goncalo-oliveira avatar Jun 04 '24 17:06 goncalo-oliveira