private IEnumerable <IEdmExpression> ComputeElements()
        {
            List <IEdmExpression> elements = new List <IEdmExpression>();

            foreach (CsdlExpressionBase elementValue in this.expression.ElementValues)
            {
                elements.Add(CsdlSemanticsModel.WrapExpression(elementValue, this.bindingContext, this.Schema));
            }

            return(elements);
        }
Exemple #2
0
        private IEnumerable <IEdmExpression> ComputeArguments()
        {
            bool skipFirst = this.expression.Function == null;
            List <IEdmExpression> result = new List <IEdmExpression>();

            foreach (CsdlExpressionBase argument in this.expression.Arguments)
            {
                if (skipFirst)
                {
                    skipFirst = false;
                }
                else
                {
                    result.Add(CsdlSemanticsModel.WrapExpression(argument, this.bindingContext, this.schema));
                }
            }

            return(result);
        }
Exemple #3
0
 private IEdmExpression ComputeIfFalse()
 {
     return(CsdlSemanticsModel.WrapExpression(this.expression.IfFalse, this.BindingContext, this.Schema));
 }
 private IEdmExpression ComputeOperand()
 {
     return(CsdlSemanticsModel.WrapExpression(this.expression.Operand, this.bindingContext, this.Schema));
 }
 private IEdmExpression ComputeExpression()
 {
     return(CsdlSemanticsModel.WrapExpression(this.sourceElement, this.BindingContext, this.schema));
 }
Exemple #6
0
 private IEdmExpression ComputeValue()
 {
     return(CsdlSemanticsModel.WrapExpression(this.property.Expression, this.context.BindingContext, this.context.Schema));
 }
 private IEdmExpression ComputeValue()
 {
     return(CsdlSemanticsModel.WrapExpression((this.Annotation).Expression, TargetBindingContext, this.Schema));
 }