I am facing subject issue while working with EF DB first with MVC3.
Please note my EF model is in a class library which is referred inside a MVC project.
On adding new controller, I selected “Controller with read wirte actions and views, using Entity Framework”. As a model class I selected EF’s generated class and as a context I select EF context.
Running on page it display records, on clicking eidt it rendered edit view as well. Just problem is when I try to update it through error.
Please guide me.
Thanks
EDID
This error is not always, some time this error appears and some time it updates.
I checked the inner excetion and then seeing profiler I realized I am entering data bigger then column size. I corrected it and it was ok after that.