Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Database contain tables that are Question,Subject,schedule

Question has columns that are
[ques_id]
,[question]
,[subid]
,[answ1]
,[answ2]
,[answ3]
,[answ4]
,[corr_answ]
Subject has columns that are
[Sub_id]
,[Subject]
Schedule has column that are
[id]
,[name]
,[date]
,[u_id]
,[subject]
while scheduling the exam user choose a subject from the dropdown list but how to proceed further cannot understand.please help me.if u can provide me the code solving in entity framework it will be easy to understand.
Posted
Updated 22-Jan-14 20:14pm
v2
Comments
JoCodes 23-Jan-14 2:15am    
What you have tried so far?

1 solution

Yes, I'm afraid that in the real world, you have to do your own work.

What have you tried, any thing ? I think you're asking how to know what subject the test should be about, form a list. You'd get that on your URL, and you'd store it in the session. EF and your DB has nothing to do with it, the DB knows how to return questions on a topic, it does not know which topic you selected.
 
Share this answer
 

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