예제 #1
0
 ///<summary>
 /// Alternate constructor for the in-memory data store where the DataStore to be used is passed in.
 ///</summary>
 ///<param name="dataStore">The Data Store to be used.</param>
 public DataAccessorInMemory(DataStoreInMemory dataStore)
 {
     _dataStore            = dataStore;
     _businessObjectLoader = new BusinessObjectLoaderInMemory(_dataStore);
 }
예제 #2
0
 /// <summary>
 /// Writes the given data store to the stream
 /// </summary>
 /// <param name="dataStore"></param>
 public void Write(DataStoreInMemory dataStore)
 {
     Write(dataStore.AllObjects);
 }
예제 #3
0
        /// <summary>
        /// Writes the datastore's objects to a StringBuilder
        /// </summary>
        /// <param name="s"></param>
        /// <param name="dataStore"></param>
        public void Write(StringBuilder s, DataStoreInMemory dataStore)
        {
            var writer = XmlWriter.Create(s, _settings);

            Write(writer, dataStore.AllObjects);
        }
예제 #4
0
 /// <summary>
 /// Writes the data store's objects to the stream.
 /// </summary>
 /// <param name="stream"></param>
 /// <param name="dataStore"></param>
 public void Write(Stream stream, DataStoreInMemory dataStore)
 {
     Write(stream, dataStore.AllObjects);
 }
 ///<summary>
 /// Constuctor for business object loaded in memory. This constructs the loader with the appropriate data store.
 ///</summary>
 ///<param name="dataStore"></param>
 public BusinessObjectLoaderInMemory(DataStoreInMemory dataStore)
 {
     _dataStore = dataStore;
 }
예제 #6
0
 /// <summary>
 /// Constructor - give it the dataStore to load from.
 /// </summary>
 /// <param name="dataStore"></param>
 public QueryResultLoaderInMemory(DataStoreInMemory dataStore)
 {
     _dataStore = dataStore;
 }
 ///<summary>
 /// Construct and transaction committer that works with the specified In memory data store.
 ///</summary>
 ///<param name="dataStoreInMemory">The datastore this transaction committer is working against.</param>
 public TransactionCommitterInMemory(DataStoreInMemory dataStoreInMemory)
 {
     _dataStoreInMemory = dataStoreInMemory;
 }