I am new to Entity Developer and am trying to use it (v 5.7.331) and the Create Model Wizard (Database First) within VS 2013 to generate the models, controllers and views for a new MVC5/EF6 application against an Oracle 12c database. During the template selection process I am adding the templates for generating controllers and views, which automatically adds the template for generating repositories and units of work. Code generation works fine, but when I build the project immediately after generation, there are multiple errors within each of the generated controllers in the application. The errors are "No overload for method 'All' takes 0 arguments", and references repository.All() in the method code. Example below:
Code: Select all
// GET: /CARRIERs/Details
public ViewResult Details(string SITECODE, string CARRIERSCAC
{
return View(repository.All().Single(x => x.SITECODE == SITECODE && x.CARRIERSCAC == CARRIERSCAC));
}
Not sure if this is a bug or if I am missing something in the generation process?