The purpose of data access is to persist the saved object. In Websharp, the PersistenceManager interface is defined to implement this function. PersistenceManager definition can be seen: attached 1:websharp main interface definition--persistencemanager
We can persist an object by using the following methods:
For a description of Persistenceproperty, see the following system Persistence configuration information section.
Transaction processing
In many cases, when dealing with object preservation, we need to use transaction processing, especially when dealing with a One-to-many structure object similar to a warehouse receipt in the previous example. In Websharp, we can accomplish this function through the transaction interface. Transaction interface definition can be seen: attached 1:websharp main interface definition--transaction
Here is an example of using transaction processing:
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.