The interface to which data access layers should conform.
Related API Members
The following members return IDataLayer objects:
XPO provides the following IDataLayer implementations:
In a general, SimpleDataLayer is equal to ThreadSafeDataLayer, and the substitution of one component by another has no effect. However, you cannot use SimpleDataLayer or ThreadSafeDataLayer under the circumstances described below:
- SimpleDataLayer does not support concurrent access from multiple threads. Use ThreadSafeDataLayer in multi-threaded applications and web applications where you share a data access layer between multiple users. Use ThreadSafeDataLayer if you use Instant Feedback data sources.
- ThreadSafeDataLayer implies that you never add new classes to XPDictionary or modify XPO metadata at runtime. You should add all required classes to XPDictionary before you create ThreadSafeDataLayer. You cannot dynamically create new classes/properties or add attributes after you instantiate a ThreadSafeDataLayer object.
- ThreadSafeDataLayer does not support database level transactions.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the IDataLayer interface.
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.