I have Added Persistent Class in in my webapplication. It contains 20 classes..,
In my Default.aspx.cs, I want to get list of Primary key name from all classes in Persistent class.. How can i find it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assumed that you use XPO:
If you have simple primary key, use
classInfo.KeyProperty.Nameto fetch its name.