Getting the VB LINQ samples working for March CTP

The VB LINQ samples are in the March CTP MSND documentation… just look for “LINQ samples” in the index.  Copy the files to somewhere you can get to them, and remove the read-only attribute from them.
Next open the solution and let the conversion wizard run. 
After it has finished open the project properties Compile tab and ensure Option Infer is ON. 
Finally change the connection string for the database by opening the DLinqSamples.vb file and replacing the :
    “‘;Integrated Security=SSPI;enlist=false”
with
    “‘;user instance=true”
 
that should get the samples up and running. I also change the application to a Windows Application instead of a console one, and try turning on Option Strict and Option Explicit 😉
 


1 Comment so far

  1.   Igor on April 2nd, 2007          

    Hi,

    Can you please post vb linq samples for download. I don’t have vpc and pre-release of msdn.

    Thank you