Tmx.StorageHelper.CreateSchema C# (CSharp) Method

CreateSchema() static private method

static private CreateSchema ( NHibernate.Cfg.Configuration cfg ) : void
cfg NHibernate.Cfg.Configuration
return void
        static void CreateSchema(Configuration cfg)
        {
Console.WriteLine("creating schema export object...");
            //cmdlet.WriteVerbose("creating schema export object...");
            var schemaExport = new SchemaExport(cfg);
Console.WriteLine("dropping the previous schema object...");
            //cmdlet.WriteVerbose("dropping the previous schema object...");
            try {
                schemaExport.Drop(false, true);
            }
            catch (Exception eDroppingSchema) {
                //cmdlet.
Console.WriteLine(eDroppingSchema.InnerException.Message);
            }
Console.WriteLine("drocreating a new schema object...");
            //cmdlet.WriteVerbose("drocreating a new schema object...");
            schemaExport.Create(false, true);
Console.WriteLine("schema has been created");
        }
    }