Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WebApi not returning expected data
Message
De
18/06/2014 18:35:33
 
 
À
18/06/2014 14:00:35
Information générale
Forum:
ASP.NET
Catégorie:
Entity Framework
Versions des environnements
Environment:
C# 4.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01602038
Message ID:
01602070
Vues:
41
>>>There's nothing stopping you from using Code First with an existing database.
>>>
>
>>
>>A tutorial on doing Code First to an existing database can be found here: http://msdn.microsoft.com/en-us/data/jj200620
>
>Thanks Rob, I'll check that out.
>
>However, I don't think that my problem is that I didn't use Code First (but it may be that in using database First I have mis-configured something),

That is probably the case. Your context (the Uow property based off your code) should have a Database property with the connection information in it. Set a breakpoint in the debugger and confirm that your connection is correct. You may also want to try logging the requests that it is doing: http://msdn.microsoft.com/en-us/data/dn469464.aspx.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform