public void CreateDocument(RouteConfig routeConfig, string path)
 {
     DataSet data = new DataSet();
     data.Tables.Add(routeConfig.Operations.ToDataTable());
     data.Tables.Add(routeConfig.RouteResources.ToDataTable());
     data.Tables.Add(routeConfig.Routes.ToDataTable());
     data.Tables.Add(routeConfig.ServiceConfigurationRoutes.ToDataTable());
     data.Tables.Add(routeConfig.RouteParameters.ToDataTable());
     data.ExportToExcel(path);
 }
        public void CreateDocument(List<ClassMetaData> metaData, string path)
        {
            DataSet data = new DataSet();
            data.Tables.Add(metaData.OrderBy(o => o.Name).ToList().ToDataTable());
            var propertyMetaData = new List<PropertyMetaData>();
            foreach (var item in metaData)
            {
                propertyMetaData.AddRange(item.PropertyMetaData);
            }

            data.Tables.Add(propertyMetaData.OrderBy(o => o.ClassName).ToList().ToDataTable(skipBooleanDefaultValue: true));
            data.ExportToExcel(path);
        }