这里是代码,并且控制器代码也在这里This is the Model of Entity Relationship
<form action="Submit" method="post">
<table class="table table-bordered">
<thead class="thead-light">
<tr>
<th colspan="4">Part A : Student Information</>
</tr>
</thead>
<tbody>
<tr>
<th width="2">Reg No:</th>
<td><input class="form-control" type="text" name="Registration_No" size="30" /></td>
<th width="2">Reg No:</th>
<td><input class="form-control" type="text" name="Registration_No1" size="30" /></td>
</tr>
<tr>
<th>Name</th>
<td><input class="form-control" type="text" name="Name" size="30" /></td>
</tr>
<tr>
<th>Phone</th>
<td><input class="form-control" type="text" name="Phone" size="30" /></td>
</tr>
<tr>
<th>Email</th>
<th><input class="form-control" type="text" name="Email" size="30" /></th>
</tr>
<tr>
<th>
<button class="btn btn-info form-control" name="Submit" value="Submit">Submit</button>
</th>
</tr>
</tbody>
</table>
</form>
public JsonResult Submit(Student_Information stu)
{
db.Student_Information.Add(stu);
db.Student_Information.Add(stu);
db.SaveChanges();
}