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

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