EntityDeveloper generating Views
Posted: Mon 26 Jan 2015 19:41
I am trying to set up a test project for EntityDeveloper. In Visual Studio 2013 I create a new ASP.NET Web Application (MVC). I touch nothing in the project. Then I add a New Item - Devart Entity Model. I add the Views Advanced Template. Everything else is default except when I select my existing database.
Because my ServiceOrder table has a number of References back to the Employee Table, I have to correct the ServiceOrderController to fix duplicates. When I attempt to Run the Project I get a bunch of the following Errors.
Every error points to a line in each controller where the method All() is called.
Would someone help me find out what step I am missing or Why it is not liking the All method.
Because my ServiceOrder table has a number of References back to the Employee Table, I have to correct the ServiceOrderController to fix duplicates. When I attempt to Run the Project I get a bunch of the following Errors.
Code: Select all
Error 15 No overload for method 'All' takes 0 arguments c:\users\rgordey.tcw\documents\visual studio 2013\Projects\MyTestProject\WebApplication1\Models\EmployeesController.cs 45 33 WebApplication1
Code: Select all
public ViewResult Index(int? page, int? pageSize, string sortBy, bool? sortDesc , global::System.Nullable<int> OfficeId, global::System.Nullable<int> BusinessId)
{
// Defaults
if (!page.HasValue)
page = 1;
if (!pageSize.HasValue)
pageSize = 10;
IQueryable<Employee> query = repository.All(); <<== Offending Line