S2Entities4 entities4 = new S2Entities4(); foreach (DataRow row in dt.Rows) { entities4.Students.Add(new Student { // Student_Id = long.Parse(row["Student_Id"].ToString()), Student_Name = row["Student_Name"].ToString(), NIOS_Enrolment_No = row["NIOS_Enrolment_No"].ToString() }); } entities4.SaveChanges();
Column 'Student_Name' does not belong to table .'
Student Name
Student_Name
NIOS_Enrolment_No
NIOS EnrolmentNo.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)