Ejemplo n.º 1
0
        public static DataTable ToTable <T>(this IEnumerable <T> records) where T : class, IDPObject, new()
        {
            DPList <T> list = new DPList <T>(records);

            return(list.Table);
        }
Ejemplo n.º 2
0
 public static DPCollection <T> ToDPCollection <T>(this DPList <T> list) where T : class, IDPObject, new()
 {
     return(new DPCollection <T>(list.Table));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// write a list of records
 /// </summary>
 /// <param name="list"></param>
 public TableWriter(DPList <T> list)
     : this(list.Table)
 {
 }