public override byte[] AsBinary(DbGeometry geometryValue) { geometryValue.CheckNull("geometryValue"); ReadOnlySpatialValues expectedValue = CheckCompatible(geometryValue); return(expectedValue.CloneBinary()); }
public override DbGeometryWellKnownValue CreateWellKnownValue(DbGeometry geometryValue) { geometryValue.CheckNull("geometryValue"); ReadOnlySpatialValues backingValue = CheckCompatible(geometryValue); return(new DbGeometryWellKnownValue() { CoordinateSystemId = backingValue.CoordinateSystemId, WellKnownBinary = backingValue.CloneBinary(), WellKnownText = backingValue.Text }); }