cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Entityframework Core Scaffold Database Model Stuck

kerria
Explorer
0 Likes
3,709

I can't scaffold with Sap.EntityFrameworkCore.Hana.

v7.0, the process stuck for hours

View Entire Topic
kerria
Explorer
0 Likes

i'm using .NET 7.

For SAP Client -> Sap.Data.Hana.Core.v2.1 and Sap.EntityFrameworkCore.Hana.v7.0.

1. dotnet ef dbcontext scaffold "Server=<my-server:30015>;uid=<uid>;pwd=<pwd>r;Current Schema=DEMO" Sap.EntityFrameworkCore.Hana.v7.0

2. dotnet ef dbcontext scaffold "Server=<my-server:30015>;uid=<uid>;pwd=<pwd>" Sap.EntityFrameworkCore.Hana.v7.0 --schema DEMO --schema SYSTEM

3. dotnet ef dbcontext scaffold "Server=<my-server:30015>;uid=<uid>;pwd=<pwd>" Sap.EntityFrameworkCore.Hana.v7.0 --table Blogs --table Posts

for the first and second methods it keeps getting stuck, for the third method it works but not as expected.

The DbContext generated but Model for table not generated.

It's there way to scaffold for the schemas? because if using --table option, i must scaffold one per one each table and it's using to much time