Oracle.EntityFrameworkCore.NetTopologySuite 10.23.26000-Preview.1

Prefix Reserved
This is a prerelease version of Oracle.EntityFrameworkCore.NetTopologySuite.
dotnet add package Oracle.EntityFrameworkCore.NetTopologySuite --version 10.23.26000-Preview.1
                    
NuGet\Install-Package Oracle.EntityFrameworkCore.NetTopologySuite -Version 10.23.26000-Preview.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Oracle.EntityFrameworkCore.NetTopologySuite" Version="10.23.26000-Preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Oracle.EntityFrameworkCore.NetTopologySuite" Version="10.23.26000-Preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Oracle.EntityFrameworkCore.NetTopologySuite" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Oracle.EntityFrameworkCore.NetTopologySuite --version 10.23.26000-Preview.1
                    
#r "nuget: Oracle.EntityFrameworkCore.NetTopologySuite, 10.23.26000-Preview.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Oracle.EntityFrameworkCore.NetTopologySuite@10.23.26000-Preview.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Oracle.EntityFrameworkCore.NetTopologySuite&version=10.23.26000-Preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Oracle.EntityFrameworkCore.NetTopologySuite&version=10.23.26000-Preview.1&prerelease
                    
Install as a Cake Tool

Oracle Logo

Oracle.EntityFrameworkCore.NetTopologySuite 10.23.26000-Preview.1

Release Notes for Oracle Entity Framework Core NetTopologySuite 10 Preview 1 NuGet Package

November 2025

Oracle.EntityFrameworkCore.NetTopologySuite is the spatial extension for Oracle Entity Framework Core provider. It enables the use of spatial data types with Oracle databases through Entity Framework Core and NetTopologySuite (NTS). Entity Framework Core (EF Core) is a cross-platform Microsoft object-relational mapper that enables .NET developers to work with relational databases using .NET objects.

This document provides information that supplements the Oracle Data Provider for .NET (ODP.NET) documentation.

Usage

Call UseNetTopologySuite inside the call to UseOracle when configuring the Oracle database provider for your DbContext.

You can optionally specify a tolerance value, which determines the precision level for spatial operations such as Equals, Intersects, or Buffer.

  • The tolerance value must be a positive number greater than zero.

  • If not specified, the default tolerance is 0.005.

Example (default tolerance):

protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    => optionsBuilder.UseOracle(
        "User Id=hr;Password=<PASSWORD>;Data Source=MyOracleDB;",
        b => b.UseNetTopologySuite());

Example (custom tolerance):

protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    => optionsBuilder.UseOracle(
        "User Id=hr;Password=<PASSWORD>;Data Source=MyOracleDB;",
        b => b.UseNetTopologySuite(tolerance: 0.001));

New Features

  • Oracle spatial data via NetTopologySuite

Tips, Limitations, and Known Issues

LINQ
  • LINQ queries comparing GeometryCollection objects with a Polygon as the last item after a LineString are not supported. For example, imagine an entity model with the following entities:
public class GeoEntity
{
    public int Id { get; set; }
    public GeometryCollection Shape { get; set; }
}

The following LINQ would throw 'ORA-13354: incorrect offset in ELEM_INFO_ARRAY':


var gc = new GeometryCollection(
    new Geometry[]
    {
        new Point(1, 1) { SRID = 4326 },
        new LineString(new[]
        {
            new Coordinate(2, 2),
            new Coordinate(3, 3)
        }) { SRID = 4326 },
        new Polygon(new LinearRing(new[]
        {
            new Coordinate(4, 4),
            new Coordinate(4, 6),
            new Coordinate(6, 6),
            new Coordinate(6, 4),
            new Coordinate(4, 4)
        })) { SRID = 4326 }
    }
) { SRID = 4326 };

var match = context.Geometries
                   .Where(e => e.Shape.EqualsExact(gc))
                   .ToList();

As a workaround, Ensure the polygon is placed before the LineString:

var gc = new GeometryCollection(
    new Geometry[]
    {
        new Point(1, 1) { SRID = 4326 },
        new Polygon( ... ) { SRID = 4326 },
        new LineString( ... ) { SRID = 4326 }
    }
);
  • LINQ queries using union or convex hull aggregates that return MULTIPOINT are not supported in Oracle 19c database version. Let us first imagine an entity model with the following entity:
public class PointEntity
{
    public int Id { get; set; }
    public string Group { get; set; }
    public Point Point { get; set; }
}

The following LINQ will return incomplete or invalid geometry in the union and convex hull result against Oracle 19c database version:

var results = context.PointEntity
    .Where(e => e.Point != null)
    .GroupBy(e => e.Group)
    .Select(g => new {         
        Union = UnaryUnionOp.Union(g.Select(e => e.Point)),
        ConvexHull = ConvexHull.Create(g.Select(e => e.Point))
        })
    .ToList();

Copyright (c) 2025, Oracle and/or its affiliates.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.23.26000-Preview.1 67 12/11/2025