Skip to content

Instantly share code, notes, and snippets.

@atxeira
Created April 24, 2014 13:50
using (DataContext dc = new DataContext("connectionString"))
{
var q = dc.ExecuteQuery<Test>("SELECT id, name FROM test");
foreach (var item in q)
{
Console.WriteLine("{0}, {1}", item.Id, item.Name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment