Exemplo n.º 1
0
        public void Rename(string sql, ErrorResponse errorResponse, Identifier from, Identifier to)
        {
            if (!object.Equals(from.ObjectType, to.ObjectType))
            {
                throw new ArgumentException("Cannot rename between different object types " + from.ObjectType + " and " + to.ObjectType);
            }

            executeChange(sql, state => state.WithRename(from, to), storage => storage.Rename(from, to), errorResponse, true);
        }