using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace Bowin.Common.Utility
{
///
/// DataSet 的扩展
///
public static class DataSetExtension
{
///
///
///
///
///
public static IEnumerable AsEnumerable(this DataSet ds)
{
if (ds == null)
{
throw new ArgumentNullException("ds");
}
foreach (DataTable item in ds.Tables)
{
yield return item;
}
}
}
}