'Table object is not null here i found this error when i insert form data in the Database Student is my model
I Don't Understand Why i Got this Error
Solution 1:[1]
There are two classes called Student in you project, one for the ctrl/service layer and one for the db layer. This is quite common.
In your method you need to translate one type into the other type. For example:
var dbStudent = new MVC_CURD.Models.Student(...);
_Db.tbl_Student.Add(dbStudent);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | tymtam |
