Skip to main content
.NET Framework 4.5.2+

InMemoryDataStore.ReadFromInMemoryDataStore(InMemoryDataStore) Method

Copies the content from a specified InMemoryDataStore.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public void ReadFromInMemoryDataStore(
    InMemoryDataStore dataStore
)

Parameters

Name Type Description
dataStore InMemoryDataStore

An InMemoryDataStore object which specifies the source in-memory data store.

Remarks

This method is useful if you are going to copy the content from a InMemoryDataStore to another InMemoryDataStore. So, rather than calling the InMemoryDataStore.WriteXml and InMemoryDataStore.ReadXml methods to save the content into a temporary XML file and then load it, you can call ReadFromInMemoryDataStore to quickly accomplish the task, without having to mediate via a temporary XML file. Using this method will also improve performance.

See Also