EDMX canvas and generating a database from Model question

0

I generated the database from the model now I notice that all the tables have an "s" appended to then Userid object transloated to Userids in SQL.

which nwhen I run the code

Userid userid = db.Userids.Find(id);

gives me this error: System.InvalidOperationException: 'The entity type Userid is not part of the model for the current context.'

is the "s" added at the end of all the tables correct?

enter image description here

THIS IS THE ACTUAL ERROR I GET

System.InvalidOperationException
  HResult=0x80131509
  Message=The entity type Userid is not part of the model for the current context.
  Source=<Cannot evaluate the exception source>
  StackTrace:
<Cannot evaluate the exception stack trace>
c#
entity-framework
edmx
edmx-designer
asked on Stack Overflow Jul 1, 2020 by R.Merritt • edited Jul 3, 2020 by R.Merritt

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0