use codefirst how to set the model's decimal field,when the database creating can be generate like decimal(18,5)
Comments: Questions about how to use EF are better asked on StackOverflow.com using the entity-framework tag. CodePlex is for reporting bugs and requesting new features. Per Andrew's comments you can use the HasPrecision and HasScale methods of the Fluent API to do this.
Comments: Questions about how to use EF are better asked on StackOverflow.com using the entity-framework tag. CodePlex is for reporting bugs and requesting new features. Per Andrew's comments you can use the HasPrecision and HasScale methods of the Fluent API to do this.