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

Entityframework Core Scaffold Database Model Stuck

kerria
Explorer
0 Likes
3,705

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

v7.0, the process stuck for hours

View Entire Topic
minghai_chang
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello,

Yes, you can just specify several tables to scaffold the model (e.g. the 3rd example).

The first error looks like some tables are owned by different schemas. The second error looks like REF_SSBP table doesn't have primary key.

Kind regards,

Minghai Chang

kerria
Explorer
0 Likes

but if i use 3rd example, that means i must set --table for each table? isn't that inefficient? i mean in this project we have tables more than 100.

table that mention in error are in the same schema, i think why error occurs because class model for table not generated, that's why i need scaffold using 'schema'.

table REF_SSBP of course have Primary Key

------------

Disclaimer

this is the old system that need rejuvenate, previously we use ADO.NET at .NET Framework for scaffold model. but since .NET Core / .NET has launched we must change everything that related to .NET Framework to .NET Core / .NET.

At ADO.NET we can select the schema we want to scaffold. Since it's using Gui we just checked the checkbox of schema name and click button okey at visual studio.