Page 1 of 1

Error map char to char

Posted: Thu 17 Jun 2021 11:20
by jacksonveroneze
Hello, in our entity the field is char and in the bank too. Is this a driver limitation?

Unhandled exception. System.InvalidOperationException: The property is of type 'char' which is not supported by current database provider. Either change the property CLR type or ignore the property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.

Re: Error map char to char

Posted: Fri 18 Jun 2021 20:55
by Shalex
We will notify you when the mapping System.Char to NCHAR(1)/CHAR(1) in EF Core is supported.