Hi I'm using entity framework code first to create my database
[Range(1, 100)]
[DataType(DataType.Currency)]
public decimal Price { get; set; }
The problem is when the table is created the "Price" field takes up the data type decimal(18, 2)
and if I tried to change the data type to money the SQL Server did not allowed me to do so.
Is there a way so that I may define a specific data type? That my sql server data type is assigned to money by default?
Or is there another way to solve this? I'm using .Net Framework 4. EF 4.4.0.0 on visual studio 2010 ultimate and MS SQL Server 2008 Express sp2.