public CsdlFunctionImport(string name, bool sideEffecting, bool composable, bool bindable, string entitySet, string entitySetPath, IEnumerable<CsdlFunctionParameter> parameters, CsdlTypeReference returnType, CsdlDocumentation documentation, CsdlLocation location) : base(name, parameters, returnType, documentation, location) { this.sideEffecting = sideEffecting; this.composable = composable; this.bindable = bindable; this.entitySet = entitySet; this.entitySetPath = entitySetPath; }
public CsdlFunctionImport( string name, bool sideEffecting, bool composable, bool bindable, string entitySet, string entitySetPath, IEnumerable <CsdlFunctionParameter> parameters, CsdlTypeReference returnType, CsdlDocumentation documentation, CsdlLocation location) : base(name, parameters, returnType, documentation, location) { this.sideEffecting = sideEffecting; this.composable = composable; this.bindable = bindable; this.entitySet = entitySet; this.entitySetPath = entitySetPath; }
public CsdlValueTerm(string name, CsdlTypeReference type, CsdlDocumentation documentation, CsdlLocation location) : base(name, documentation, location) { this.type = type; }
internal static IEdmTypeReference WrapTypeReference(CsdlSemanticsSchema schema, CsdlTypeReference type) { CsdlNamedTypeReference reference = type as CsdlNamedTypeReference; if (reference != null) { CsdlPrimitiveTypeReference reference2 = reference as CsdlPrimitiveTypeReference; if (reference2 != null) { switch (reference2.Kind) { case EdmPrimitiveTypeKind.Binary: return new CsdlSemanticsBinaryTypeReference(schema, (CsdlBinaryTypeReference) reference2); case EdmPrimitiveTypeKind.Boolean: case EdmPrimitiveTypeKind.Byte: case EdmPrimitiveTypeKind.Double: case EdmPrimitiveTypeKind.Guid: case EdmPrimitiveTypeKind.Int16: case EdmPrimitiveTypeKind.Int32: case EdmPrimitiveTypeKind.Int64: case EdmPrimitiveTypeKind.SByte: case EdmPrimitiveTypeKind.Single: case EdmPrimitiveTypeKind.Stream: return new CsdlSemanticsPrimitiveTypeReference(schema, reference2); case EdmPrimitiveTypeKind.DateTime: case EdmPrimitiveTypeKind.DateTimeOffset: case EdmPrimitiveTypeKind.Time: return new CsdlSemanticsTemporalTypeReference(schema, (CsdlTemporalTypeReference) reference2); case EdmPrimitiveTypeKind.Decimal: return new CsdlSemanticsDecimalTypeReference(schema, (CsdlDecimalTypeReference) reference2); case EdmPrimitiveTypeKind.String: return new CsdlSemanticsStringTypeReference(schema, (CsdlStringTypeReference) reference2); case EdmPrimitiveTypeKind.Geography: case EdmPrimitiveTypeKind.GeographyPoint: case EdmPrimitiveTypeKind.GeographyLineString: case EdmPrimitiveTypeKind.GeographyPolygon: case EdmPrimitiveTypeKind.GeographyCollection: case EdmPrimitiveTypeKind.GeographyMultiPolygon: case EdmPrimitiveTypeKind.GeographyMultiLineString: case EdmPrimitiveTypeKind.GeographyMultiPoint: case EdmPrimitiveTypeKind.Geometry: case EdmPrimitiveTypeKind.GeometryPoint: case EdmPrimitiveTypeKind.GeometryLineString: case EdmPrimitiveTypeKind.GeometryPolygon: case EdmPrimitiveTypeKind.GeometryCollection: case EdmPrimitiveTypeKind.GeometryMultiPolygon: case EdmPrimitiveTypeKind.GeometryMultiLineString: case EdmPrimitiveTypeKind.GeometryMultiPoint: return new CsdlSemanticsSpatialTypeReference(schema, (CsdlSpatialTypeReference) reference2); } } return new CsdlSemanticsNamedTypeReference(schema, reference); } CsdlExpressionTypeReference expressionUsage = type as CsdlExpressionTypeReference; if (expressionUsage != null) { CsdlRowType typeExpression = expressionUsage.TypeExpression as CsdlRowType; if (typeExpression != null) { return new CsdlSemanticsRowTypeExpression(expressionUsage, new CsdlSemanticsRowTypeDefinition(schema, typeExpression)); } CsdlCollectionType collection = expressionUsage.TypeExpression as CsdlCollectionType; if (collection != null) { return new CsdlSemanticsCollectionTypeExpression(expressionUsage, new CsdlSemanticsCollectionTypeDefinition(schema, collection)); } CsdlEntityReferenceType entityTypeReference = expressionUsage.TypeExpression as CsdlEntityReferenceType; if (entityTypeReference != null) { return new CsdlSemanticsEntityReferenceTypeExpression(expressionUsage, new CsdlSemanticsEntityReferenceTypeDefinition(schema, entityTypeReference)); } } return null; }
public CsdlAssociationEnd(string role, CsdlTypeReference type, EdmMultiplicity multiplicity, CsdlOnDelete onDelete, CsdlDocumentation documentation, CsdlLocation location) : base(role, documentation, location) { this.type = type; this.multiplicity = multiplicity; this.onDelete = onDelete; }
public CsdlProperty(string name, CsdlTypeReference type, bool isFixedConcurrency, string defaultValue, CsdlDocumentation documentation, CsdlLocation location) : base(name, documentation, location) { this.type = type; this.isFixedConcurrency = isFixedConcurrency; this.defaultValue = defaultValue; }
public CsdlFunction(string name, IEnumerable <CsdlFunctionParameter> parameters, string definingExpression, CsdlTypeReference returnType, CsdlDocumentation documentation, CsdlLocation location) : base(name, parameters, returnType, documentation, location) { this.definingExpression = definingExpression; }
public CsdlCollectionExpression(CsdlTypeReference type, IEnumerable <CsdlExpressionBase> elementValues, CsdlLocation location) : base(location) { this.type = type; this.elementValues = new List <CsdlExpressionBase>(elementValues); }
public CsdlAssertTypeExpression(CsdlTypeReference type, CsdlExpressionBase operand, CsdlLocation location) : base(location) { this.type = type; this.operand = operand; }
public CsdlRecordExpression(CsdlTypeReference type, IEnumerable<CsdlPropertyValue> propertyValues, CsdlLocation location) : base(location) { this.type = type; this.propertyValues = new List<CsdlPropertyValue>(propertyValues); }
public CsdlEntityReferenceType(CsdlTypeReference entityType, CsdlLocation location) : base(location) { this.entityType = entityType; }
public CsdlFunctionReturnType(CsdlTypeReference returnType, CsdlLocation location) : base(location) { this.returnType = returnType; }
public CsdlFunctionParameter(string name, CsdlTypeReference type, EdmFunctionParameterMode mode, CsdlDocumentation documentation, CsdlLocation location) : base(name, documentation, location) { this.type = type; this.mode = mode; }
public CsdlCollectionType(CsdlTypeReference elementType, CsdlLocation location) : base(location) { this.elementType = elementType; }
public CsdlFunction(string name, IEnumerable<CsdlFunctionParameter> parameters, string definingExpression, CsdlTypeReference returnType, CsdlDocumentation documentation, CsdlLocation location) : base(name, parameters, returnType, documentation, location) { this.definingExpression = definingExpression; }
public CsdlCollectionExpression(CsdlTypeReference type, IEnumerable<CsdlExpressionBase> elementValues, CsdlLocation location) : base(location) { this.type = type; this.elementValues = new List<CsdlExpressionBase>(elementValues); }
protected CsdlFunctionBase(string name, IEnumerable <CsdlFunctionParameter> parameters, CsdlTypeReference returnType, CsdlDocumentation documentation, CsdlLocation location) : base(name, documentation, location) { this.parameters = new List <CsdlFunctionParameter>(parameters); this.returnType = returnType; }
protected CsdlFunctionBase(string name, IEnumerable<CsdlFunctionParameter> parameters, CsdlTypeReference returnType, CsdlDocumentation documentation, CsdlLocation location) : base(name, documentation, location) { this.parameters = new List<CsdlFunctionParameter>(parameters); this.returnType = returnType; }
public CsdlRecordExpression(CsdlTypeReference type, IEnumerable <CsdlPropertyValue> propertyValues, CsdlLocation location) : base(location) { this.type = type; this.propertyValues = new List <CsdlPropertyValue>(propertyValues); }