public TodoRepository(TodoDataContext dataContext) { _dataContext = dataContext; }
public static void Initialize(TodoDataContext dataContext) { dataContext.Database.EnsureCreated(); dataContext.Database.Migrate(); }