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));
            }
        }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }