Error map char to char

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
jacksonveroneze
Posts: 2
Joined: Mon 14 Jun 2021 11:23

Error map char to char

Post by jacksonveroneze » Thu 17 Jun 2021 11:20

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'.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Error map char to char

Post by Shalex » Fri 18 Jun 2021 20:55

We will notify you when the mapping System.Char to NCHAR(1)/CHAR(1) in EF Core is supported.

Post Reply