Example #1
0
        public static CremaDataSet CreateFromAssembly(Assembly assembly)
        {
            var dataSet = new CremaDataSet();
            var types   = assembly.GetTypes().Where(item => item.IsEnum && item.IsPublic == true);

            foreach (var item in types)
            {
                dataSet.AddTypeFromEnumType(item);
            }

            CreateClassTable(dataSet, assembly);

            return(dataSet);
        }