MySql.Data.Entity.SelectGenerator.WrapIfNotCompatible C# (CSharp) Method

WrapIfNotCompatible() public method

public WrapIfNotCompatible ( SelectStatement select, DbExpressionKind expressionKind ) : SelectStatement
select SelectStatement
expressionKind DbExpressionKind
return SelectStatement
        public SelectStatement WrapIfNotCompatible(SelectStatement select, DbExpressionKind expressionKind)
        {
            if (select.IsCompatible(expressionKind)) return select;
            SelectStatement newSelect = new SelectStatement();
            select.Wrap(scope);
            newSelect.From = select;
            return newSelect;
        }