Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity Framework Core Firebird can't scaffold columns with NUMERIC type #1191

Closed
Camel-RD opened this issue Sep 10, 2024 · 2 comments
Closed

Comments

@Camel-RD
Copy link

When I try to scaffold a table with a column of type NUMERIC(x,y), I get this error "Could not find type mapping for column..."

It seems like FbTypeMappingSource doesn't have a case for NUMERIC column type.

@gilsonjoanelo
Copy link
Contributor

There was a similar error with this one when mapping a company database. Since we use Code First, I solved it by putting this configuration in the mapping .HasColumnType("NUMERIC(15, 6)").

To declare it as an attribute, you have to use [Column(TypeName = "NUMERIC(15, 6)")], which also solves the problem. At least I no longer had the exception reported.

@cincuranet
Copy link
Member

Dupe of #1141.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants