Skip to main content

Posts

Windows Phone 7 development Error

I tried to debug a Windows Phone 7 application in Visual Studio 2010 when I received the error “Zune Software is not installed. Install the latest version of Zune software”, it turned out I did not select the correct deployment target for the project, I had “Windows Phone 7 Device” selected instead of “Windows Phone 7 Emulator.

Selecting a Single value using LINQ to SQL

TablesDataContext myDB = new TablesDataContext (); String stVar = (    from   table in myDB.DBTable                     where        table.column1 == "…." && table.column2 == "….."                     select        table.StringColumn).Single(); int intVar    = (    from   table in myDB.DBTable                      where table.column == "..."                      select table.intColumn).Single().Value;