見つけようとしている問題が 1 つありますが、まだそれを修正する方法が見つかりません。プログラムを実行すると、以下のようなメッセージがスローされます
'tblssscr' の 'fldscr1' プロパティを 'Double' 値に設定できませんでした。このプロパティは、'Single' 型の null 以外の値に設定する必要があります。
これが私のプロジェクトを実行するための私のクラスです:
public class tblssscr
{
[Key]
public int tblssscrId { get; set; }
[DisplayName("Request code")]
public int fldssrid { get; set; }
[DisplayName("StudentId")]
public int tblss_studentId { get; set; }
public virtual tblss_student tblss_student { get; set; }
[DisplayName("Student Tempcode")]
public string fldstdtmpcode { get; set; }
[DisplayName("Attandence")]
public int fldatt { get; set; }
[DisplayName("Discount (%)")]
public int flddiscount { get; set; }
[Required(ErrorMessage = "Score 1 is required!")]
[DisplayName("Score 1")]
public float? fldscr1 { get; set; }
[DisplayName("Score 2")]
public float fldscr2 { get; set; }
[DisplayName("Total Score")]
public float fldtscr { get; set; }
[DisplayName("Offer Code")]
public int fldrst { get; set; }
}