Issues raised by Silverlight RIA Services Cache

Source: Internet
Author: User
Tags silverlight

problem Description: using Silverlight's RIA Services for database update operations, finding exceptions when repeating commits, submitoperation errors, prompting entity class conflicts, Check that the data deleted before the discovery is still there (deleted in the database), and then delete the operation, the database is no longer existing data deleted, so error.

Workaround: Each commit operation is re-load once, to ensure that the data is synchronized with the database, the load data to operate, clear the impact of cached data, the problem is resolved.

Reason: this is because RIA services will each time according to the query criteria of the data in the database is taken out to the client, and into the form of entity classes to facilitate the developer of data additions and deletions, and then through the Submitchange method to submit all operations, the database is updated, This may cause the database to be updated, but the client's data is not updated and an error is raised.

In addition, the issubmitting, isloading status of Domain Services needs to be processed before submission to avoid failure.

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.