예제 #1
0
        private void SetupSyncsSoupIfNotExistsNeeded()
        {
            if (_store.HasSoup(SoupName))
            {
                return;
            }

            _store.RegisterSoup(SoupName, _indexSpecs);
        }
예제 #2
0
        private void SetupSyncsSoupIfNotExistsNeeded()
        {
            IndexSpec[] indexSpecs =
            {
                new IndexSpec("UserId", SmartStoreType.SmartString)
            };

            if (!_store.HasSoup(SoupName))
            {
                _store.RegisterSoup(SoupName, indexSpecs);
            }
        }
예제 #3
0
        private void SetupSyncsSoupIfNotExists()
        {
            IndexSpec[] indexSpecs =
            {
                new IndexSpec(SuccessfulSync.TransactionItemTypeIndexKey, SmartStoreType.SmartString),
                new IndexSpec(SuccessfulSync.SyncIdIndexKey,              SmartStoreType.SmartString),
            };

            if (!_store.HasSoup(SoupName))
            {
                _store.RegisterSoup(SoupName, indexSpecs);
            }
        }
예제 #4
0
        private void SetupNewCategoryContentSoupIfNotExists()
        {
            IndexSpec[] indexSpecs =
            {
                new IndexSpec("Id",                                            SmartStoreType.SmartString),
                new IndexSpec(Model.Models.CategoryContent.CategoryIdIndexKey, SmartStoreType.SmartString),
            };

            if (!_store.HasSoup(SoupName))
            {
                _store.RegisterSoup(SoupName, indexSpecs);
            }
        }
 public void RegisterSoup()
 {
     _store.RegisterSoup(NotesSoup, NotesIndexSpec);
 }
 public void RegisterSoup()
 {
     _store.RegisterSoup(ContactSoup, ContactsIndexSpec);
 }
예제 #7
0
 public void CreateAccountsSoup()
 {
     _store.RegisterSoup(AccountsSoup, AccountsIndexSpecs);
 }