Professional Documents
Culture Documents
When A Device Has A Plenty of Memory
When A Device Has A Plenty of Memory
using SQLite;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MauiApp6.Models;
namespace MauiApp6
{
public class StudentRepository
{
string _dbPath;
private async Task Init() // Added async modifier and changed return type
{
if (conn != null)
return;
if (string.IsNullOrEmpty(name))
throw new Exception("Valid name required");
using MauiApp6.Models;
namespace MauiApp6
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
}
private async void OnGetButtonClicked(object sender, EventArgs e)
{
statusMessage.Text = "";
List<Student> section = await App.StudentRepo.GetSection();
sectionList.ItemsSource = section;
}
}