Skip to main content

InMemoryDataStore Members

Stores persistent objects in memory. Intended for a testing environment and not for production purposes or large data sets.

#Constructors

Name Description
InMemoryDataStore() Initializes a new instance of the InMemoryDataStore class and sets the IDataStore.AutoCreateOption property to AutoCreateOption.DatabaseAndSchema.
InMemoryDataStore(AutoCreateOption, Boolean) Initializes a new instance of the InMemoryDataStore class with the specified settings.
InMemoryDataStore(AutoCreateOption) Initializes a new instance of the InMemoryDataStore class with the specified settings.
InMemoryDataStore(InMemoryDataStore, AutoCreateOption) Initializes a new instance of the InMemoryDataStore class using the underlying storage of a specific InMemoryDataStore.
InMemoryDataStore(DataSet, AutoCreateOption, Boolean) Obsolete. Initializes a new instance of the InMemoryDataStore class.
InMemoryDataStore(DataSet, AutoCreateOption)

Obsolete. This constructor is obsolete.

#Fields
Show Inherited Hide Inherited

Name Description
XpoProviderTypeParameterName static Returns a parameter name used to denote a provider type in a connection string. The default value is “XpoProvider”. Inherited from DataStoreBase.
XpoProviderTypeString Gets the name of the current connection provider. This name is used internally when generating a connection string via the InMemoryDataStore.GetConnectionString method.

#Properties
Show Inherited Hide Inherited

Name Description
AutoCreateOption Returns which operations are performed when a data store is accessed for the first time. Inherited from DataStoreBase.
CanCreateSchema Gets whether the InMemoryDataStore object is allowed to create a schema in the associated DataSet.
CaseSensitive Gets whether the InMemoryDataStore performs case-sensitive comparisons for strings during expression evaluations or sorting.
Data

Obsolete. This property is obsolete.

Factories static Returns registered provider factories. Inherited from DataStoreBase.
SyncRoot Obsolete. Gets an object that can be used to synchronize access to the InMemoryDataStore.

#Methods
Show Inherited Hide Inherited

Name Description
CreateProviderFromString(String, AutoCreateOption, out IDisposable[]) static This method supports the internal infrastructure and is not intended to be called directly from your code.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetConnectionString(String, Boolean) static Returns a connection string that can be used to create an InMemoryDataStore instance.
GetConnectionString(String) static Returns a connection string that can be used to create an InMemoryDataStore instance.
GetConnectionStringInMemory(Boolean) static Returns a connection string that can be used to create an InMemoryDataStore instance that is not bound to an XML file.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetLifetimeService() Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetStorageTables(String[]) Returns information that describes the structures of the specified tables.
GetStorageTablesList(Boolean) Returns a list of the available tables in the data store.
GetStoredProcedures() Returns an array of stored procedures available within the data store.
GetTableSchema(String) This member supports the internal infrastructure and is not intended to be used directly from your code.
GetType() Gets the Type of the current instance. Inherited from Object.
InitializeLifetimeService() Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protected Creates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
QueryDataStore(IDbConnection, AutoCreateOption) static Creates a data store based on specified settings. Inherited from DataStoreBase.
QueryDataStore(String, String, AutoCreateOption, out IDisposable[]) static Creates a data store based on specified settings. Inherited from DataStoreBase.
ReadFromInMemoryDataStore(InMemoryDataStore) Copies the content from a specified InMemoryDataStore.
ReadXml(String) Reads the data into the InMemoryDataStore from a specific file.
ReadXml(XmlReader) Reads the data into the InMemoryDataStore from a specific XmlReader.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Register() static Registers the provider for use with XPO.
RegisterCustomAggregate(ICustomAggregate)
RegisterCustomAggregates(ICollection<ICustomAggregate>)
RegisterCustomFunctionOperator(ICustomFunctionOperator) Registers a custom function operator.
RegisterCustomFunctionOperators(ICollection<ICustomFunctionOperator>) Registers custom function operators.
RegisterDataStoreProvider(String, DataStoreCreationFromConnectionDelegate) static Registers a data store provider using a specified connection type name and a procedure that establishes a connection for the provider. Inherited from DataStoreBase.
RegisterDataStoreProvider(String, DataStoreCreationFromStringDelegate) static Registers a data store provider using a specified name and a procedure that establishes a connection for the provider. Inherited from DataStoreBase.
RegisterFactory(ProviderFactory) static Registers a specified data store provider factory. Inherited from DataStoreBase.
ToString() Returns a string that represents the current object. Inherited from Object.
UpdateSchema(DBTable[]) Updates a data store’s schema according to specified settings. Inherited from DataStoreBase.
WriteXml(String) Writes the data contained in the InMemoryDataStore to the specified file.
WriteXml(XmlWriter) Writes the data contained in the InMemoryDataStore to the specified XmlWriter.
See Also