コード例 #1
0
 static InMemoryUnitOfWork()
 {
     Serializer    = new JsonObjectSerializer();
     WorkingSet    = new InMemoryDataStore();
     CommittedData = Serializer.Serialize(WorkingSet);
 }
コード例 #2
0
        public void Rollback()
        {
            Logger.Warn("Rolling back unit-of-work");

            WorkingSet = Serializer.Deserialize <InMemoryDataStore>(CommittedData);
        }
コード例 #3
0
 public InMemoryRepository(InMemoryDataStore dataStore)
 {
     logger               = LogFactory.BuildLogger(GetType());
     this.dataStore       = dataStore;
     identityPropertyInfo = GetIdentityPropertyInformation();
 }