コード例 #1
0
        public IEnumerable <Store1> ReadInStore()
        {
            var getPizza = from P in PC.Store
                           select MapStore.Map(P);

            return(getPizza);
        }
コード例 #2
0
 public void CreateStore(Store1 Store)
 {
     //if (PC.CxOrder.Any(c => c.OrderId == order.) || order.Phone == null)
     //{
     //    Console.WriteLine($"This order with username {order.Username} already exists and cannot be added");
     //    return;
     //}
     //else
     PC.Store.Add(MapStore.Map(Store)); // this will generate insertMapper.Map(order)
     PC.SaveChanges();                  // this will execute the above generate insert query
 }