I had an entity :
public class Book
{
public int BookID{get; set;}
public string BookName{get; set;}
public int Price {get; set;}
}
I scaffolded and created Controller and Views automatically. Then I changed my entity to this :
public class Book
{
public int BookID{get; set;}
public string BookName{get; set;}
public double Price {get; set;}
}
I copied my project, then deleted controller and views, recreated them automatically. Then copied the content of controller and views from the old one. Now when I enter 18.75 I get "The value '18.75' is not valid for Price." error. How can I fix this situation? Thanks.
decimalfor currency, notdouble.