コード例 #1
0
        private string CreateDatabaseSQL(
            MetaModel model)
        {
            StringBuilder commandBuilder = new StringBuilder();

            commandBuilder.Append(m_builder.CreateDatabasePreambleSQL());

            // Append the SQL for deleting the tables
            foreach (MetaTable table in model.GetTables())
            {
                commandBuilder.Append(m_builder.CreateTableSQL(table));
            }

            return(commandBuilder.ToString());
        }