J
Jon Skeet [C# MVP]
K Viltersten said:I got me a DB called "deebee.sdf" and by
DataContext db = new DataContext
(@"C:\deebee.sdf");
i create connection to it. In there a table
called "tabula" resides. Now, the problem
is that i can't get any info from it. I've
tried to follow the tutorial on MS' site by
var query = from tabula in db select tabula;
as well as
IEnumerable<Object> query =
from tabula in db select tabula;
but, as you surely expect, the compiler though
otherwise. I suspect that it's a matter of a
simple sytax confusion. Is it and if so how?
As far as I'm aware, you can't do an awful lot with a "bare"
DataContext. You need to create a specific DataContext - most easily
done with the DBML designer in VS2008.