I am using Entity Framework 5 - Code first.
I have a database that I am connecting to that already exists for some time now (I did not create it). There is a table
Specify numeric type for column
Property(x => x.Id).HasColumnName("Customer_id").HasColumnType("numeric");
When generating database, it will create numeric column with precision 18,0. But when you are mapping to existing database, it will work fine with 5,0 numeric column.
18,0
5,0