Комментарии:
Shopping Cart Error doesnt displayed on the view sadly. It gives error but you cant see it. Any solutions ?
ОтветитьIf someone have the error:The INSERT statement conflicted with the FOREIGN KEY constraint "FK_OrderDEtails_Orders_OrderId". The conflict occurred in database "DrinkStore", table "dbo.Orders", column 'OrderId'.
The statement has been terminated.
just add _appDbContext.SaveChanges(); after _appDbContext.Orders.Add(order); in OrderRepository
sorry for bothering you but i have an error when i proceed to checkout it said that "InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'MobileStore.Data.Models.Order', but this ViewDataDictionary instance requires a model item of type 'MobileStore.ViewModels.CheckoutViewModel'." checkoutviewmodel is a model include Order and ShoppingCart model and in the OrderController i followed your instructions. so please help me solve it. thank u!
ОтветитьVery good tutorial. Why there's no payment structure for the order?.. That would be the only thing missing to make it a complete application...thanks
ОтветитьHi Ervis, it has finally worked. im so happy.. thanks alot
ОтветитьHi Ervis, I mistakenly deleted some tables from my database in the server explorer. I deleted orderid and orderdetails. I have been getting some exceptions when I run the application. How do I get these tables back? They are even in my migration, whenever I right “update-database, they don’t still reflect on the database. How do I go about this?
Ответить