EntityDeveloper generating Views

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
rgordey
Posts: 4
Joined: Mon 26 Jan 2015 19:11

EntityDeveloper generating Views

Post by rgordey » 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.

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
Every error points to a line in each controller where the method All() is called.

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
Would someone help me find out what step I am missing or Why it is not liking the All method.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: EntityDeveloper generating Views

Post by Shalex » Tue 27 Jan 2015 12:18

rgordey wrote:No overload for method 'All' takes 0 arguments
Please refer to http://forums.devart.com/viewtopic.php?f=32&t=29479. Does this help?

rgordey
Posts: 4
Joined: Mon 26 Jan 2015 19:11

Re: EntityDeveloper generating Views

Post by rgordey » Tue 27 Jan 2015 21:10

Much Thanks!

Post Reply