J
John Dann
Currently using VB2005 Pro hence I haven't really got to grips with
LINQ yet. An upgrade to V2008 is planned, but for a part-time private
coder it's not cheap and so it needs to await a good justification!
I'm wondering if this question might provide the trigger, but want to
check my facts first.
I've got a largish datatable - several thousand rows and 60-100
columns. The primary index column is a datetime type.
I want to query this datatable and retrieve rows for a segment of
dates (ie >datetime1 AND <datetime2) and return only a small and
specified subset of columns. Presumably the returned block of cells is
or could readily be in the form of another - obviously much smaller -
datatable?
So, does LINQ make this easy in VB2008 or not? By 'easy' I'm guessing
that once a suitable query statement had been assembled then it might
just be one or two lines of further code to actually execute the
query?
I'm currently doing this in VB2005 but it's rather clumsy (unless I've
missed a trick) and I'd feel more comfortable with a neater and lower
maintenance solution.
JGD
LINQ yet. An upgrade to V2008 is planned, but for a part-time private
coder it's not cheap and so it needs to await a good justification!
I'm wondering if this question might provide the trigger, but want to
check my facts first.
I've got a largish datatable - several thousand rows and 60-100
columns. The primary index column is a datetime type.
I want to query this datatable and retrieve rows for a segment of
dates (ie >datetime1 AND <datetime2) and return only a small and
specified subset of columns. Presumably the returned block of cells is
or could readily be in the form of another - obviously much smaller -
datatable?
So, does LINQ make this easy in VB2008 or not? By 'easy' I'm guessing
that once a suitable query statement had been assembled then it might
just be one or two lines of further code to actually execute the
query?
I'm currently doing this in VB2005 but it's rather clumsy (unless I've
missed a trick) and I'd feel more comfortable with a neater and lower
maintenance solution.
JGD