Tuesday, December 4, 2012

Linq issues with datatables

first the interesting thing
if a linq query returns an empty array of datarows - you can still run tolist() on the object.
a different issue that sidetracked me for a long time - if you do something like 


row.Field<string>("BLAH").ToLower()
this will fail if null

No comments:

Post a Comment