IDataStore Interface
The interface for objects that need to interact with a data store.
Namespace: DevExpress.Xpo.DB
Assembly: DevExpress.Data.v21.1.dll
Declaration
Related API Members
The following members accept/return IDataStore objects:
Related API Members
The following members accept/return IDataStore objects:
Remarks
The IDataStore interface declares the methods common to objects that need to interact with a data store.
The base classes that implement this interface are DataStoreSerializedBase and its descendant, DataStoreBase.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the IDataStore interface.
Note
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.
namespace B190497 {
public class SafePostgreSqlConnectionProvider : IDataStore, IDisposable, ICommandChannel {
PostgreSqlConnectionProvider InnerDataStore;
namespace WinWebSolution.Module {
public class XpoDataStoreProxy : IDataStore, ICommandChannel {
private SimpleDataLayer legacyDataLayer;
public Dictionary<Type, DataStoreMapping> Mappings { get; private set; }
public IDataStore DataStore { get; private set; }
public PostOfficeClient() {
: base(connection, autoCreateOption) { }
public new static IDataStore CreateProviderFromString(string connectionString, AutoCreateOption autoCreateOption, out IDisposable[] objectsToDisposeOnDisconnect) {
IDbConnection connection = new SqlConnection(connectionString);
public static class XpoHelper {
private static ConcurrentDictionary<string, IDataStore> ConnectionProviders = new ConcurrentDictionary<string,IDataStore>();
/// <summary>
Public Class XpoDataStoreProxy
Implements IDataStore, ICommandChannel
Public Function ModifyData(ParamArray ByVal dmlStatements() As ModificationStatement) As ModificationResult
Return (CType(Application("DataStore"), IDataStore)).ModifyData(dmlStatements)
End Function
End Property
Private privateDataStore As IDataStore
Public Property DataStore() As IDataStore
Public Class SafePostgreSqlConnectionProvider
Implements IDataStore, IDisposable, ICommandChannel
End Sub
Public Shadows Shared Function CreateProviderFromString(ByVal connectionString As String, ByVal autoCreateOption As AutoCreateOption, <System.Runtime.InteropServices.Out()> ByRef objectsToDisposeOnDisconnect() As IDisposable) As IDataStore
Dim connection As IDbConnection = New SqlConnection(connectionString)