Hello
I am using .Net Core
I want to add a property to my model
pubic decimal ContractId {get;set;}
and create relation to Contract Table Primary Key
so I added
public virtual Contracts Contract {get;set;}
Because the ContractId field Precision, Scale in the Contracts Table is (32,0) , I am getting error that the length are not same
and it is forcing me to create it as 18,2
I changed the size from the database and same error exist.
I tried all the following solutions and nothing works
https://www.andrewcbancroft.com/2017/03/29/entity-framework-tip-specifying-decimal-precision/
https://stackoverflow.com/questions/3504660/decimal-precision-and-scale-in-ef-code-first
and this
https://github.com/CypressNorth/.NET-EF6-PrecisionAnnotation
any Idea?