System\Data\SqlClient\SqlSpatialServices.cs (37)
97result = this.SqlTypes.SqlTypesGeographyFromText(wellKnownValue.WellKnownText, wellKnownValue.CoordinateSystemId);
101result = this.SqlTypes.SqlTypesGeographyFromBinary(wellKnownValue.WellKnownBinary, wellKnownValue.CoordinateSystemId);
114object normalizedProviderValue = NormalizeProviderValue(providerValue, this.SqlTypes.SqlGeographyType);
115return this.SqlTypes.IsSqlGeographyNull(normalizedProviderValue) ? null: DbSpatialServices.CreateGeography(this, normalizedProviderValue);
127Debug.Assert(expectedSpatialType == this.SqlTypes.SqlGeographyType || expectedSpatialType == this.SqlTypes.SqlGeometryType);
134if (expectedSpatialType == this.SqlTypes.SqlGeographyType)
136if (providerValueType == otherServices.SqlTypes.SqlGeographyType)
143if (providerValueType == otherServices.SqlTypes.SqlGeometryType)
176result = this.SqlTypes.SqlTypesGeometryFromText(wellKnownValue.WellKnownText, wellKnownValue.CoordinateSystemId);
180result = this.SqlTypes.SqlTypesGeometryFromBinary(wellKnownValue.WellKnownBinary, wellKnownValue.CoordinateSystemId);
193object normalizedProviderValue = NormalizeProviderValue(providerValue, this.SqlTypes.SqlGeometryType);
194return this.SqlTypes.IsSqlGeometryNull(normalizedProviderValue) ? null : DbSpatialServices.CreateGeometry(this, normalizedProviderValue);
244return this.SqlTypes.GeographyAsTextZM(geographyValue);
249return this.SqlTypes.GeometryAsTextZM(geometryValue);
259return this.SqlTypes.SqlGeographyType.GetMethod(methodName, BindingFlags.Public | BindingFlags.Instance, null, argTypes, null);
264return this.SqlTypes.SqlGeographyType.GetMethod(methodName, BindingFlags.Public | BindingFlags.Static, null, argTypes, null);
269return this.SqlTypes.SqlGeographyType.GetProperty(propertyName, BindingFlags.Public | BindingFlags.Instance);
274return this.SqlTypes.SqlGeometryType.GetMethod(methodName, BindingFlags.Public | BindingFlags.Static, null, argTypes, null);
279return this.SqlTypes.SqlGeometryType.GetMethod(methodName, BindingFlags.Public | BindingFlags.Instance, null, argTypes, null);
284return this.SqlTypes.SqlGeometryType.GetProperty(propertyName, BindingFlags.Public | BindingFlags.Instance);
302return this.SqlTypes.ConvertToSqlTypesGeography(geographyValue);
312return this.SqlTypes.ConvertToSqlTypesGeometry(geometryValue);
322return this.SqlTypes.SqlBytesFromByteArray(binaryValue);
332return this.SqlTypes.SqlCharsFromString(stringValue);
342return this.SqlTypes.SqlStringFromString(stringValue);
352return this.SqlTypes.SqlXmlFromString(stringValue);
361return this.SqlTypes.SqlBooleanToBoolean(sqlBoolean);
366return this.SqlTypes.SqlBooleanToNullableBoolean(sqlBoolean);
371return this.SqlTypes.SqlBytesToByteArray(sqlBytes);
376return this.SqlTypes.SqlCharsToString(sqlCharsValue);
381return this.SqlTypes.SqlStringToString(sqlCharsValue);
386return this.SqlTypes.SqlDoubleToDouble(sqlDoubleValue);
391return this.SqlTypes.SqlDoubleToNullableDouble(sqlDoubleValue);
396return this.SqlTypes.SqlInt32ToInt(sqlInt32Value);
401return this.SqlTypes.SqlInt32ToNullableInt(sqlInt32Value);
406return this.SqlTypes.SqlXmlToString(sqlXmlValue);