Esempio n. 1
0
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public GeometryValueConverter(Type type, SqlServerSpatialReader reader)
     : base(
         (Expression <Func <IGeometry, SqlBytes> >)(g => new SqlBytes(_writer.Write(g))),
         GetConvertFromProviderExpression(type, reader))
 {
     ModelClrType = type;
 }
Esempio n. 2
0
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public GeometryValueConverter(SqlServerSpatialReader reader)
     : base(
         g => new SqlBytes(_writer.Write(g)),
         b => (TGeometry)reader.Read(b.Value))
 {
 }