Beispiel #1
0
        public RecipesService()
        {
            var options = new DbContextOptionsBuilder <RecipesDbContext>()
                          .UseInMemoryDatabase("NumairRecipeDatabase")
                          .Options;

            _context = new RecipesDbContext(options);
        }
Beispiel #2
0
 public RecipesService(RecipesDbContext context)
 {
     _context = context;
 }