private IEdmTypeReference ComputeDeclaredType()
 {
     if (this.expression.Type != null)
     {
         return(CsdlSemanticsModel.WrapTypeReference(base.Schema, this.expression.Type));
     }
     else
     {
         return(null);
     }
 }
        private IEdmEntityType ComputeEntityType()
        {
            IEdmTypeReference edmTypeReference = CsdlSemanticsModel.WrapTypeReference(this.schema, this.entityTypeReference.EntityType);

            if (edmTypeReference.TypeKind() == EdmTypeKind.Entity)
            {
                return(edmTypeReference.AsEntity().EntityDefinition());
            }
            else
            {
                return(new UnresolvedEntityType(this.schema.UnresolvedName(edmTypeReference.FullName()), base.Location));
            }
        }
Exemple #3
0
        private IEdmEntityType ComputeEntityType()
        {
            IEdmTypeReference type = CsdlSemanticsModel.WrapTypeReference(this.schema, this.entityTypeReference.EntityType);

            return(type.TypeKind() == EdmTypeKind.Entity ? type.AsEntity().EntityDefinition() : new UnresolvedEntityType(this.schema.UnresolvedName(type.FullName()), this.Location));
        }
 private IEdmTypeReference ComputeType()
 {
     return(CsdlSemanticsModel.WrapTypeReference(base.Schema, this.expression.Type));
 }
Exemple #5
0
 private IEdmStructuredTypeReference ComputeDeclaredType()
 {
     return(this.expression.Type != null?CsdlSemanticsModel.WrapTypeReference(this.Schema, this.expression.Type).AsStructured() : null);
 }
 private IEdmTypeReference ComputeReturnType()
 {
     return(CsdlSemanticsModel.WrapTypeReference(this.Context, this.functionBase.ReturnType));
 }
 private IEdmTypeReference ComputeElementType()
 {
     return(CsdlSemanticsModel.WrapTypeReference(this.schema, this.collection.ElementType));
 }
 private IEdmTypeReference ComputeType()
 {
     return(CsdlSemanticsModel.WrapTypeReference(this.declaringFunction.Context, this.parameter.Type));
 }
Exemple #9
0
 private IEdmTypeReference ComputeType()
 {
     return(CsdlSemanticsModel.WrapTypeReference(this.declaringType.Context, this.property.Type));
 }
 private IEdmTypeReference ComputeType()
 {
     return(CsdlSemanticsModel.WrapTypeReference(this.Context, this.valueTerm.Type));
 }