Sql CE 3.5: Data generation probelma

Asked

Viewed 166 times

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?

  • 1

    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

  • Are you trying to use EF? It does not work unless it is version 7.0

  • 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!

1 answer

1

EF requires System.Data.dll which is currently not supported by Windows Phone... What is currently supported is Linq to SQL that works just like the EF ORM style.

Main information At this Link

I believe that the version 7 will be supported.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.