public static DataTable ToTable <T>(this IEnumerable <T> records) where T : class, IDPObject, new() { DPList <T> list = new DPList <T>(records); return(list.Table); }
public static DPCollection <T> ToDPCollection <T>(this DPList <T> list) where T : class, IDPObject, new() { return(new DPCollection <T>(list.Table)); }
/// <summary> /// write a list of records /// </summary> /// <param name="list"></param> public TableWriter(DPList <T> list) : this(list.Table) { }