Ejemplo n.º 1
0
 /// <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.DbGeometry" />
 ///     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.DbGeometryWellKnownValue" /> that contains the well-known representation of a geometry value.
 /// </param>        
 public abstract object CreateProviderValue(DbGeometryWellKnownValue wellKnownValue);
 public override object CreateProviderValue(DbGeometryWellKnownValue wellKnownValue)
 {
     throw new NotImplementedException();
 }
 public override object CreateProviderValue(DbGeometryWellKnownValue wellKnownValue)
 {
     wellKnownValue.CheckNull("wellKnownValue");
     return new ReadOnlySpatialValues(
         wellKnownValue.CoordinateSystemId, wellKnownValue.WellKnownText, wellKnownValue.WellKnownBinary, gmlValue: null);
 }
Ejemplo n.º 4
0
 public override object CreateProviderValue(DbGeometryWellKnownValue wellKnownValue)
 {
     Check.NotNull(wellKnownValue, "wellKnownValue");
     return(new ReadOnlySpatialValues(
                wellKnownValue.CoordinateSystemId, wellKnownValue.WellKnownText, wellKnownValue.WellKnownBinary, gmlValue: null));
 }
Ejemplo n.º 5
0
 public override object CreateProviderValue(DbGeometryWellKnownValue wellKnownValue)
 {
     Check.NotNull <DbGeometryWellKnownValue>(wellKnownValue, nameof(wellKnownValue));
     return((object)new DefaultSpatialServices.ReadOnlySpatialValues(wellKnownValue.CoordinateSystemId, wellKnownValue.WellKnownText, wellKnownValue.WellKnownBinary, (string)null));
 }