Пример #1
0
 public TodoRepository(TodoDataContext dataContext)
 {
     _dataContext = dataContext;
 }
Пример #2
0
 public static void Initialize(TodoDataContext dataContext)
 {
     dataContext.Database.EnsureCreated();
     dataContext.Database.Migrate();
 }