0
When trying to generate Datacontext to a Windowsphone 8.1 project, through the SQL Server Compact Toolbox interface:
-Generate Code (EF/LINQ to SQL/Syncfx) >> Add Windows Phone Datacontext to Current Project (needs 3.5)http://i.msdn.microsoft.com/dynimg/IC727449.png).
Is presenting the message:
The Selected project type does not support Windows Phone 7.18.0 - Wrong Target framework moniker Windows Phone app version= 8.1.
This does not allow generating the datacontext for my Windows Phone 8.1 project;
What should I do to add my.sdf database as my project datacontex ?
. net version used is 3.5?
– Marciano.Andrade
3.5 is the version of SQL Server Compact, also tried making use of version 4.0 of SQL Server CE but had no success
– Anderson
Are you trying to use EF? It does not work unless it is version 7.0
– MayogaX
I you are using the add-in, make sure to have the Latest refresh by uninstalling and reinstalling from Extension and Updates or from VS gallery!
– ErikEJ