static void Main(string[] args) { var configDB = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile("appsettings.json").Build(); string connection = configDB.GetConnectionString("Dozen2DB"); DbContextOptions <DBSteveIP0Context> dbOptions = new DbContextOptionsBuilder <DBSteveIP0Context>().UseSqlServer(connection).Options; using var context = new DBSteveIP0Context(dbOptions); DrinkMenu dMenu = new DrinkMenu(context); dMenu.Start(); }
public InventoryRepoDB(DBSteveIP0Context context, Mapper mapper) { this.context = context; this.mapper = mapper; }
public DrinkMenu(DBSteveIP0Context context) { this.context = context; }