DataSet HasTables Method
DataSet Extentions.
Add Methods to Objects.
So, it's getting me tired to always right:
if (ds != null && ds.Tables.Count > 0)
to make sure that a certain dataset really has tables inside.
So here is an extension I added to the DataSet object:
Simple, yet efficient :)
Elad Shalom,
CTO at ITweetLive.com
Add Methods to Objects.
So, it's getting me tired to always right:
if (ds != null && ds.Tables.Count > 0)
to make sure that a certain dataset really has tables inside.
So here is an extension I added to the DataSet object:
public static bool HasTables(this DataSet ds) { if (ds != null && ds.Tables.Count > 0) return true; return false; }
Simple, yet efficient :)
Elad Shalom,
CTO at ITweetLive.com
birkin bag, north face outlet, hogan, nike air max, new balance shoes, louis vuitton, timberland, hollister, nfl jerseys, air jordan, louis vuitton, abercrombie and fitch, longchamp, nike free, lancel, lululemon, supra shoes, oakley pas cher, rolex watches, converse shoes, montre pas cher, louis vuitton, nike air max, michael kors, mulberry, nike free, air max, ralph lauren, burberry, air max, ralph lauren, hermes, vans, beats by dre, wedding dresses, louboutin, yoga pants, ray ban pas cher, reebok outlet, karen millen
ReplyDeletenike free, louis vuitton outlet online, chanel handbags, oakley sunglasses, burberry outlet online, air max, tiffany and co, ray ban, prada outlet, ray ban sunglasses, burberry outlet online, louboutin, longchamp outlet, louboutin, coach outlet store, polo ralph lauren outlet, oakley sunglasses, jordan shoes, oakley sunglasses, coach factory outlet, coach outlet, nike shoes, michael kors outlet, gucci outlet, coach purses, coach factory, tory burch outlet, prada handbags, oakley sunglasses, toms shoes, louis vuitton handbags, true religion jeans, true religion outlet, kate spade outlet, ray ban sunglasses, true religion, polo ralph lauren, nike air max, oakley sunglasses, michael kors outlet
ReplyDelete