Blazor connect to Sqllite
Anonymous
I cloned the below app from github
Now I want to remove the below hardcoding and load question from sqllite
test.db3.
Could someone suggest how to connect to test.db3 and populate List<question>
C:\Users\allam\Downloads\Quizzing-master\Quizzing-master\Quizzing\Pages\QuizCardBase.cs
https://github.com/KalyanAllam/Quizzing/
private void LoadQuestions()
{
Question q1 = new Question
{
QuestionTitle = "What is the capital of France?",
Options = new List<string>() { "Nantes", "Lyon", "Paris", "Bruxelles" },
Answer = "Paris"
};
Question q2 = new Question
{
QuestionTitle = "What is the capital of England?",
Options = new List<string>() { "London", "Manchester", "Glasgow", "Edinburgh" },
Answer = "London"
};
Questions.AddRange(new List<Question> { q1, q2, q3, q4 ,q5}); }
Sign in to answer