I got attribute in sql server 2012 database of data type numeric (18,0), how I am going to model using data annotation in asp.net mvc-5 app.
this code giving me following error...
An exception of type 'System.InvalidOperationException' occurred in EntityFramework.dll but was not handled in user code
Additional information: The 'PassMark' property on 'MarkScheme' could not be set to a 'System.Decimal' value. You must set this property to a non-null value of type 'System.Int32'
Many Thanks
SQL Image

Model
[Required(ErrorMessage = "Required Pass Mark")]
[Display(Name = "Pass Mark")]
public int PassMark { get; set; }