質問

I'm currently using VS2012 Express, writing in C#, and targeting WP8. My testing is being done with the emulator.

I've been following the example here:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202860(v=vs.105).aspx#BKMK_UsingtheDatabase

My problem is, every time I try to instantiate a DataContext object (well, my derived class) I get a NotSupportedException in System.Data.Linq.ni.dll. The line throwing the exception is the constructor calling base(ConnectionString).

Any idea what I'm doing wrong, or how I can get more information to help me sort this out?

役に立ちましたか?

解決

Apparently db files can only use SDF extensions. When I modified the name of my data file to use .SDF, everything worked fine.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top