Hello,
I used LLBLGen Pro to generate the code for my MYSQL database. I am using Asp.NET, C#, and CoreLab.MySQL.
Upon a EntityClass.Save function, I would like to grab the Primary Key generated by the database. Is there a way to do this?
TutorApp.EntityClasses.SubjectsEntity theSubject = new TutorApp.EntityClasses.SubjectsEntity();
theSubject.Sublevel="Elementary";
theSubject.Subname="Math";
theSubject.Save();
//write the primary key
//This causes the app to bomb, no primary key sent back
Response.Write(theSubject.Subid.ToString());