IDataStore Interface
The interface for objects that need to interact with a data store.
Namespace: DevExpress.Xpo.DB
Assembly: DevExpress.Data.v22.1.dll
Declaration
Related API Members
The following members return IDataStore objects:
Related API Members
The following members 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.
how-to-bind-wpf-grid-to-data/CS/CodeBehind/XPO/InfiniteAsyncSource/Issues/ConnectionHelper.cs#L29
AutoCreateOption autoCreateOption = AutoCreateOption.DatabaseAndSchema;
IDataStore provider = XpoDefault.GetConnectionProvider(connStr, autoCreateOption);
return threadSafe ? (IDataLayer)new ThreadSafeDataLayer(dictionary, provider) : new SimpleDataLayer(dictionary, provider);
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 Class XpoDataStoreProxy
Implements IDataStore, ICommandChannel
how-to-bind-wpf-grid-to-data/VB/CodeBehind/XPO/InfiniteAsyncSource/Issues/ConnectionHelper.vb#L25
Dim autoCreateOption As AutoCreateOption = AutoCreateOption.DatabaseAndSchema
Dim provider As IDataStore = XpoDefault.GetConnectionProvider(connStr, autoCreateOption)
Return If(threadSafe, CType(New ThreadSafeDataLayer(dictionary, provider), IDataLayer), New SimpleDataLayer(dictionary, provider))
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