use codefirst how to set decimal like decimal(18,5)


use codefirst how to set the model's decimal field,when the database creating can be generate like decimal(18,5)
Closed Nov 29, 2012 at 11:16 PM by RoMiller
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.


AndrewPeters wrote Nov 21, 2012 at 9:23 PM

You can use the HasPrecision/HasScale fluent APIs to do this.