I am beginner in breeze, I want to integrate it into an ASP.net MVC4 project .
I have the same problem in Saving Data Using Breeze.js but this post did not answer the problem and I hope we can do it this time
The problem is that I don’t have to use Entity Framework and I don’t know how to replace ContextProvider in SaveChanges method in the controller
[HttpPost]
public SaveResult SaveChanges (JObject saveBundle) {
return ContextProvider.SaveChanges (saveBundle);
}
I also tried to customize ressourceName by using SaveOptions:
var option = new breeze.SaveOptions ({resourceName 'MyContoller'});
entityManager.saveChanges (null, optional)
. then (
alert ("ok");
)
. fail (function (e) {
alert (e);
});
When I run it no problem starts but the controller does not receive data!
So my question is: How can I save changes with breeze without using EntityFramework?
Thank you in advance