Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebApi not returning expected data
Message
From
18/06/2014 18:35:33
 
 
To
18/06/2014 14:00:35
General information
Forum:
ASP.NET
Category:
Entity Framework
Environment versions
Environment:
C# 4.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01602038
Message ID:
01602070
Views:
39
>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform