コード例 #1
0
 public void CleanupTombstones(TimeSpan timespan)
 {
     InitializeMetadataStore();
     _metadataStore.BeginTransaction();
     _metadata.CleanupDeletedItems(timespan);
     _metadataStore.CommitTransaction();
     CloseMetadataStore();
 }
コード例 #2
0
        protected override void CommitTransaction()
        {
            if (_metaDataStore == null)
            {
                throw new ArgumentNullException("metadata store not initialized");
            }
            SqlMetadataStore metaDataStore = _metaDataStore as SqlMetadataStore;

            metaDataStore.CommitTransaction();
        }
コード例 #3
0
        public void BeginSession()
        {
            InitializeMetadataStore();
            //   _store = MySimpleDataStore.ReadStoreFromFile(_folderPath, _name);

            //Make sure the metadata store is updated to reflect the state of the data before each sync operation.
            _metadataStore.BeginTransaction();
            UpdateMetadataStoreWithLocalChanges();
            _metadataStore.CommitTransaction();
            // CleanupTombstones(new TimeSpan(0));
        }