Ejemplo n.º 1
0
        public void saveTheNewOrders(string userName, string OrderMessage)
        {
            擺腹BuyFoodContext db           = new 擺腹BuyFoodContext();
            DateTime         dn           = DateTime.Now;
            TMessageOrder    messageOrder = new TMessageOrder
            {
                CMessageOrder = OrderMessage,
                CUserName     = userName,
                CIsRead       = 0,
                CSaveTime     = dn
            };

            db.Add(messageOrder);
            db.SaveChanges();
        }