I am havign two tables in DB
table name Questions
columns : _id, QuizId, QuestionText
and second table Answers
columns : _id , QuesId, QuizId , AnswerText , IsRight
Now i have populated such model through Data Access Layer
Class QuestionAnswers
{
int _id {get;set;}
string QuestionText {get;set;}
List<Answer> AnswerList { get; set;}
}
while Answer class is as follows
class Answer
{
int _id {get;set;}
string AnswerText {get;set;}
boolean IsRight{ get;set;}
}
Now since students of one group have same set of QuestionAnswers, so through my Data Access Layer I will pick the set of QA only first time and then I wish to render these existing QA to all other subsequent request.
To achieve this I have to create static List QAList. So how to manage this QAList object because I want to access this object from Web Service project as well as Web Form project as I am havign a common Models and common BusinessLogic class library project.
I simply want to know how to mange this object so that it can be accessible from multiple projects within same solution and how to manage this object so that it is accessible to all users who logged in my web app (can be achieved by making class static).