2 implementations of IDbSpatialValue
System.Data.Entity (2)
System\Data\SqlClient\IDbSpatialValue.cs (2)
69
internal struct DbGeographyAdapter :
IDbSpatialValue
139
internal struct DbGeometryAdapter :
IDbSpatialValue
11 references to IDbSpatialValue
System.Data.Entity (11)
System\Data\SqlClient\IDbSpatialValue.cs (6)
39
/// Returns an instance of <see cref="
IDbSpatialValue
"/> that wraps the specified <see cref="DbGeography"/> value.
43
/// <returns>An instance of <see cref="
IDbSpatialValue
"/> that wraps the specified geography value</returns>
44
internal static
IDbSpatialValue
AsSpatialValue(this DbGeography geographyValue)
54
/// Returns an instance of <see cref="
IDbSpatialValue
"/> that wraps the specified <see cref="DbGeometry"/> value.
58
/// <returns>An instance of <see cref="
IDbSpatialValue
"/> that wraps the specified geometry value</returns>
59
internal static
IDbSpatialValue
AsSpatialValue(this DbGeometry geometryValue)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
1040
private void AppendSpatialConstant(SqlBuilder result,
IDbSpatialValue
spatialValue)
System\Data\SqlClient\SqlSpatialServices.cs (3)
159
var
spatialValue = geographyValue.AsSpatialValue();
200
var
spatialValue = geometryValue.AsSpatialValue();
216
private static TValue CreateWellKnownValue<TValue>(
IDbSpatialValue
spatialValue, Func<Exception> onMissingSrid, Func<Exception> onMissingWkbAndWkt, Func<int, byte[], string, TValue> onValidValue)
System\Data\SqlClient\SqlTypesAssembly.cs (1)
460
private object GetSqlTypesSpatialValue(
IDbSpatialValue
spatialValue, Type requiredProviderValueType)