Наследование: net.datacowboy.SqlServerDatabaseDocumentationGenerator.Inspection.CommonInspector
        private static Task<Database> getDatabaseMetaDataAysnc(string connectionString)
        {
            return Task<Database>.Factory.StartNew(() =>
            {
                var dbi = new DatabaseInspector(connectionString);
                return dbi.GetDatabaseMetaData();

            });
        }
        static void Main(string[] args)
        {
            //TODO: add param support
            string connStr = "Server=.; Database=AdventureWorks; Integrated Security=true;";

            DatabaseInspector dbi = new DatabaseInspector(connStr);
            var metadata = dbi.GetDatabaseMetaData();

            DatabaseHtmlDocumentGenerator gen = new DatabaseHtmlDocumentGenerator();

            using (var sw = new StreamWriter("database.html", false))
            {
                var str = gen.ExportToHtml(metadata, sw);
            }

            Console.ReadLine();
        }