.NET

MVC 3 problems validating a decimal

Posted on

Last I was doing some MVC3 development but I kept on having validation problems with my forms. My form looked like this: I don’t know if you see my problem already but I had some problems validating my decimal. When I submitted my form I always get the following error message: The field Max. aantal […]

.NET

Define 2 keys in an MVC3 model object

Posted on

Last I was converting an application into MVC3. But when I came to the point where I needed to create an object that contained 2 keys. I could not do this with following code: I always received the error message: Unable to determine composite primary key ordering for type ‘Project.Models.ModelObject’. Use the ColumnAttribute or the […]