protected internal override Expression VisitPrimaryKeyString(PrimaryKeyStringExpression pk)
            {
                var id   = this.Visit(pk.Id);
                var type = this.Visit(pk.TypeId);

                return(Expression.Call(miTryParse, type, id));
            }
Esempio n. 2
0
        protected internal virtual Expression VisitPrimaryKeyString(PrimaryKeyStringExpression pk)
        {
            var typeId = Visit(pk.TypeId);
            var id     = Visit(pk.Id);

            if (typeId == pk && pk.Id == id)
            {
                return(pk);
            }

            return(new PrimaryKeyStringExpression(id, (TypeImplementedByAllExpression)typeId));
        }