todo stage1

This commit is contained in:
2023-10-27 18:07:18 +09:00
parent 937fbc4bc0
commit ba58c0a803
25 changed files with 1189 additions and 31 deletions

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ToDoApp.Context;
namespace ToDoApp.Service
{
public class DbService
{
public static DbService Instance { get; set; } = new DbService();
public void EnsureCreated()
{
using (var context = new ToDoContext())
{
context.Database.EnsureCreated();
}
}
}
}