Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No Entity Framework Access Class
Message
De
08/06/2011 16:44:32
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
No Entity Framework Access Class
Versions des environnements
Environment:
C# 4.0
OS:
Vista
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01513669
Message ID:
01513669
Vues:
131
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);
}
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform