Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MM.Net Entity Framework
Message
De
13/10/2013 10:35:28
 
 
À
12/10/2013 19:22:34
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01585386
Message ID:
01585389
Vues:
49
>First Time try to use Entity Framework and when build, found the following error.
>
>'Northwind.ProductsEntity' does not contain a definition for 'ProductName' and no extension method 'ProductName' accepting a first argument of type 'Northwind.ProductsEntity' could be found (are you missing a using directive or an assembly reference?) D:\Code\Northwind\Northwind\Products\ProductsRules.cs 49 39 Northwind

I suspect that you have somehow changed the EntityType from 'Products' to 'Product'. Try deleting the '.tt' files and re-building.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform