Entity Framework Core Support (SAP HANA Data Provider for Microsoft ADO.NET)

SAP HANA supports Entity Framework Core so that you can develop applications.

The supported Entity Framework versions are Entity Framework Core 6 and 7.

SAP HANA supports version 2.x and higher.

Installation

The SAP HANA Entity Framework Core Provider is shipped with the SAP HANA database client. It contains one .NET assembly (Sap.EntityFrameworkCore.Hana.<version>.0.dll) which is located in <hdbclient>\dotnetcore\<version>.

The provider references Sap.Data.Hana.Core.v2.1.dll. If your project is a direct dependency of the SAP HANA .NET Core Provider, it must reference Sap.Data.Hana.Core.v2.1.dll.

Entity Framework Core 7

The Entity Framework Core 7 driver supports columns that contain JSON documents. This allows mapping of aggregates built from .NET types to JSON documents. In Entity Framework Core, JSON columns can be used to store and query JSON data in an SAP HANA database. Queries into JSON columns work the same as querying any other aggregate type in Entity Framework Core.

The commands SaveChanges and SaveChangesAsync are used to make updates to a JSON column. For extensive changes, the entire document is updated. However, updating a sub-document is not supported.