예제 #1
0
        private static void efProductDalGetAll()
        {
            EfProductDal efProductDal = new EfProductDal();

            foreach (var product in efProductDal.GetAll())
            {
                Console.WriteLine(product.ProductName);
            }
        }
예제 #2
0
        private static void efProductDalGetById()
        {
            EfProductDal efProductDal = new EfProductDal();

            Console.WriteLine(efProductDal.GetById(24).ProductName);
        }