I know there is a question with basically the same header but is different in my case. I moved from Linq-to-SQL to Entity Framework (which I am a little new to) and I have a method where I use
You don't need to call
InsertOnSubmit in Entity Framework.
You can simply create a
new object of what you want to
add in database and then call
Entities entities = new Entities(); Employee emp = new Employee(); emp.Name = "Mairaj"; entities.Employees.Add(emp); entities.SaveChanges();