static void PrintAllStoresEF() { foreach (var s in _sql.ReadStores()) { Console.WriteLine(s); } }
static void SetSingletonStores() { foreach (Store store in _sql.ReadStores()) { _client.Stores.Add(store); } }
// static void PrintAllStores() // { // Console.WriteLine("\nPlease select a store.\n");//might be a better way/place to put this? // foreach (var store in _client.Stores) // { // System.Console.WriteLine(store); // } // } static void PrintAllStoresWithEF() { foreach (var store in _sql.ReadStores()) { System.Console.WriteLine(store); } }
static void PrintAllStores() { Console.WriteLine("Select Store:"); foreach (var store in _sql.ReadStores()) { Console.WriteLine(store); } }
static void PrintAllStores() { Console.WriteLine(" * * WELCOME TO THE PIZZA CONSOLE 5000 * * \n * PLEASE SELECT A PIZZA STORE *"); foreach (var store in sqlclient.ReadStores()) { System.Console.WriteLine(store.Name); } }
static void PrintAllStoresWithEF() { PrintMessage("Select a Store:"); foreach (var store in _sql.ReadStores()) { System.Console.WriteLine(store); } }
static void Main(string[] args) { PrebuiltPizza(); int choice = _client1.UserOrStore(); _client1.Stores = _sql.ReadStores().ToList(); if (choice == 1) { UserView(); } else if (choice == 2) { StoreView(); } else { Console.WriteLine("Something went wrong, check UserOrStore method"); } }
private static IEnumerable <Store> GetAllStores() { return(_sql.ReadStores()); }