I am trying to generate the Generated classes for my database with 8 tables. All 8 tables have primary keys.
The LoadByPrimaryKey function for 2 of my tables does not have the 2nd parameter, and thus is getting a compile error.
The primary key for the 2 tables that this is happening to have integer datatypes, with Identity set to yes. There are 2 other tables with integer primary keys, defined exactly the same way, and they are working correctly. The other 4 tables have varchar primary keys, and they are working correctly.
I scripted the 2 tables as create, and ran the script in another database. I then generated the Generated classes for these 2 tables from the other database and it created code with the missing parameters, that compiled correctly.
So, I have a workaround, but why in my real database are the primary keys not being seen in the generation. I assume if I want to regenerate these classes sometime in the future, I will have to go through this process again.
Thanks,
Steve