Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No Entity Framework Access Class
Message
From
08/06/2011 16:44:32
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
No Entity Framework Access Class
Environment versions
Environment:
C# 4.0
OS:
Vista
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01513669
Message ID:
01513669
Views:
130
I am stepping through the MM.Net documentation's Jump Start tutorials.

I have completed successfully all of the steps in Creating Entity Framework Business Objects - C#.

I am now creating my first Web form based on the steps found in Web Forms Application - C#

After creating and running the Customer Orders Form I am getting a run time error that I am having difficulty figuring out.

In the Order.Partial.cs file in method GetCustomerOrders I get the following error:

Error Framework object query execution requested, but no Entity Framework data access class has been specified for this business object.

This run-time error occurs at the line of code reading: return this.GetEntityList(query);

I am using VS 2010 with the MM.Net 4.0 framework on a Windows Vista OS.

I checked the value of customerID while debugging the method and it had the correct value "ROMEY".
Anyone have any idea what this error is telling me?

Full Method listed here is part of the Order class created in Creating Entity Framework Business Objects - C#.:
public mmBindingList<OrderEntity> GetOrdersByCustomerID(string customerID)
{
        IQueryable<OrderEntity> query = from order in this.ObjectContext.OrderEntities
                           where order.CustomerID == customerID
                           select order;
        return this.GetEntityList(query);
}
Next
Reply
Map
View

Click here to load this message in the networking platform