Music Store Study notes (July 10, 2015)

Source: Internet
Author: User

Today's mission: to filter the overall framework and code details, debugging functions.

One. Occurs: "The store update, insert, or DELETE statement affects the number of unexpected rows (0)." Entities may be modified or deleted after they are loaded. Refreshes the Objectstatemanager item. ”

The reasons for running the wrong language are:

1. The following names are commented on the page: @Html. hiddenfor (model = model. albumID), plus, run normally.

or 2, "Bind (Exclude =" albumID ") in the album class appears to be problematic, resulting in albumid not being able to submit correctly when the Storemanager-edit chart is submitted, always" 0 ", commenting out the name and running correctly. (I don't know if there was an error when I entered the code by tutorial).

Two.

1.{"DELETE statement conflicts with REFERENCE constraint \" Fk_invoiceline_album\ ". The conflict occurs in the database \ "mvcmusicstore\", table \ "dbo." Orderdetails\ ", column ' albumID '. \ r \ n statement terminated. "}

ALTER TABLE MvcMusicStore.dbo.OrderDetails
Drop CONSTRAINT Fk_invoiceline_album

2.{"DELETE statement conflicts with REFERENCE constraint \" Fk_cart_album\ ". The conflict occurs in the database \ "mvcmusicstore\", table \ "dbo." Carts\ ", column ' albumID '. \ r \ n statement terminated. "}

ALTER TABLE MvcMusicStore.dbo.Carts
Drop CONSTRAINT Fk_cart_album

Music Store Study notes (July 10, 2015)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.