public virtual string Execute(ICommandContext commandContext) { DbSqlSessionFactory dbSqlSessionFactory = (DbSqlSessionFactory)commandContext.SessionFactories[typeof(DbSqlSession)]; DbSqlSession dbSqlSession = new DbSqlSession(dbSqlSessionFactory, commandContext.EntityCache, connection, catalog, schema); commandContext.Sessions[typeof(DbSqlSession)] = dbSqlSession; return(dbSqlSession.DbSchemaUpdate()); }