.NET Standard 2.0+
.NET Framework 4.5.2+
.NET Standard 2.0+

IDataLayer Interface

The interface to which data access layers should conform.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.2.dll

Declaration

public interface IDataLayer :
    IDisposable,
    IDataLayerProvider,
    IXPDictionaryProvider
Public Interface IDataLayer
    Inherits IDisposable,
             IDataLayerProvider,
             IXPDictionaryProvider

Remarks

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 explicit transactions.

Extension Methods

See Also