I am doing an asp.net core api with odata. My tables in database has no primary key and I do not have permission to change the database. I use below command to call my database:
"dotnet ef dbcontext scaffold "Data Source = 192.168.11.1\sql2016;Initial Catalog=SeeMiddle;persist security info=True;user id=Iaas;password=Iaas123!@#" Microsoft.EntityframeworkCore.SqlServer -d -c SeeMiddleContext -o Models\Entities --force"
and I encounter below errors for every tables:
Unable to identify the primary key for table 'cmn.ReshteNerkhItem'.
Unable to generate entity type for table 'cmn.ReshteNerkhItem'.
how can I work with a database that has any primary key in asp.net core??