Click here to Skip to main content
15,906,574 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how to pass primary key value to foreign key in c#

Actually i created employee details class and department details class where Department ID is common how how can i pass this Department ID to department class so that i can access the department class to get department name
Posted
Comments
OriginalGriff 22-Jul-14 5:08am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
Prasaad SJ 22-Jul-14 5:10am    
What have you tried so far. ? You have both the values in Lists ?
anil420 22-Jul-14 5:20am    
yes i have both the values in list.Iam trying to display department name which is in deparment class by using deparment Id which is in employee details class and deparment class
krishnaMurali 22-Jul-14 5:50am    
Please improve your question.. provide the code or giv it in tabular format etc.. then one can understand your issue.
ZurdoDev 22-Jul-14 21:32pm    
How do you do it? By writing code. Where are you stuck? They are your classes, how can we tell you how to do it? We did not write your code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900