public OdeToFoodSeeder(OdeToFoodDbContext ctx, IHostingEnvironment hosting, UserManager <AppUser> userManager) { _ctx = ctx; _hosting = hosting; _userManager = userManager; }
public static void Initialize(OdeToFoodDbContext context) { // Look for any movies. if (context.Restaurants.Any()) { return; // DB has been seeded } context.Restaurants.AddRange( new Restaurant { Name = "Scott's Pizza Place", Cuisine = CuisineType.French }, new Restaurant { Name = "Tersiguels", Cuisine = CuisineType.Italian }, new Restaurant { Name = "King's Contrivance", Cuisine = CuisineType.German } ); context.SaveChanges(); }
public SqlRestaurantData(OdeToFoodDbContext odeToFoodDb) { _db = odeToFoodDb; }
public SqlRestaurantData(OdeToFoodDbContext context) { Context = context; }
public DetailsModel(OdeToFood.Data.OdeToFoodDbContext context) { _context = context; }
public EditModel(OdeToFood.Data.OdeToFoodDbContext context) { _context = context; }
public PostgreSQLRestaurantData(OdeToFoodDbContext db) { _db = db; }
public SqlRestaurantData(OdeToFoodDbContext odeToFoodDbContext) { this.odeToFoodDbContext = odeToFoodDbContext; }
public SqlRestarantsData(OdeToFoodDbContext db) { _context = db; }
public OdeToFoodRepository(OdeToFoodDbContext ctx, ILogger <OdeToFoodRepository> logger) { _ctx = ctx; _logger = logger; }
public SqlRestaurantRepository(OdeToFoodDbContext dbContext) { _dbContext = dbContext; }
public SqlRestaurantData(OdeToFoodDbContext db, ILogger <SqlRestaurantData> logger) { this.db = db; this.logger = logger; }
public SqlServerData(OdeToFoodDbContext db) { this.db = db; }
public SqlRestaurantData(OdeToFoodDbContext _db) { db = _db; }
public SqlVarorData(OdeToFoodDbContext db) { this.db = db; }
public IndexModel(OdeToFood.Data.OdeToFoodDbContext context) { _context = context; }
public RestaurantData(OdeToFoodDbContext db) { _db = db; }
public CreateModel(OdeToFood.Data.OdeToFoodDbContext context, IHtmlHelper htmlHelper) { _context = context; this.htmlHelper = htmlHelper; }
public SqlRestaurantData(OdeToFoodDbContext dbContext) { this.dbContext = dbContext; }
public DeleteModel(OdeToFood.Data.OdeToFoodDbContext context) { _context = context; }
public SqlRestaurantData(OdeToFoodDbContext db) { this.db = db; }
public SqlRestauraunt(OdeToFoodDbContext db) { this.db = db; }