public RecipesService() { var options = new DbContextOptionsBuilder <RecipesDbContext>() .UseInMemoryDatabase("TopsyTurvyCakes") .Options; _context = new RecipesDbContext(options); // linking our database _context into this service, method below }
public RecipesService() { var options = new DbContextOptionsBuilder <RecipesDbContext>() .UseInMemoryDatabase("TopsyTurvyCakes") .Options; _context = new RecipesDbContext(options); }
public RecipesService(RecipesDbContext context)// that link { _context = context; }
public RecipesService(RecipesDbContext context) { _context = context; }