/// <summary>
 ///     Creates a provider-specific value compatible with this spatial services implementation based on the specified well-known
 ///     <see
 ///         cref="T:System.Data.Entity.Spatial.DbGeography" />
 ///     representation.
 /// </summary>
 /// <returns>A provider-specific value that encodes the information contained in wellKnownValue in a fashion compatible with this spatial services implementation.</returns>
 /// <param name="wellKnownValue">
 ///     An instance of <see cref="T:System.Data.Entity.Spatial.DbGeographyWellKnownValue" /> that contains the well-known representation of a geography value.
 /// </param>
 public abstract object CreateProviderValue(DbGeographyWellKnownValue wellKnownValue);
 public override object CreateProviderValue(DbGeographyWellKnownValue wellKnownValue)
 {
     throw new NotImplementedException();
 }
 public override object CreateProviderValue(DbGeographyWellKnownValue wellKnownValue)
 {
     wellKnownValue.CheckNull("wellKnownValue");
     return new ReadOnlySpatialValues(
         wellKnownValue.CoordinateSystemId, wellKnownValue.WellKnownText, wellKnownValue.WellKnownBinary, gmlValue: null);
 }
示例#4
0
 public override object CreateProviderValue(DbGeographyWellKnownValue wellKnownValue)
 {
     Check.NotNull(wellKnownValue, "wellKnownValue");
     return(new ReadOnlySpatialValues(
                wellKnownValue.CoordinateSystemId, wellKnownValue.WellKnownText, wellKnownValue.WellKnownBinary, gmlValue: null));
 }
示例#5
0
 public override object CreateProviderValue(DbGeographyWellKnownValue wellKnownValue)
 {
     Check.NotNull <DbGeographyWellKnownValue>(wellKnownValue, nameof(wellKnownValue));
     return((object)new DefaultSpatialServices.ReadOnlySpatialValues(wellKnownValue.CoordinateSystemId, wellKnownValue.WellKnownText, wellKnownValue.WellKnownBinary, (string)null));
 }