Example #1
0
        public static DataTable Create(List <object[]> root)
        {
            DataTable table = DataTableFactory.Create();

            table.TableName = nameof(Origami.Models.Assesment);
            foreach (var entry in root)
            {
                PopulateData(entry, ref table);
            }
            return(table);
        }
Example #2
0
 private static IEnumerable <PropertyInfo> Props(object item)
 => DataTableFactory.Props(item.GetType());
Example #3
0
 private static string NameOf(Type type, PropertyInfo prop)
 => DataTableFactory.NameOf(type, prop);