diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-10 13:21:59 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-10 13:21:59 +0200 |
| commit | 8b4e0971171d40844ca1c63591aeb1fbe4add759 (patch) | |
| tree | f257fb0c986ec841844285ddda6477057408ea2b /Software/Visual_Studio/Tango.Synchronization/Remote | |
| parent | b64fa61aaa9cc684b72935159048c7f24bafce51 (diff) | |
| download | Tango-8b4e0971171d40844ca1c63591aeb1fbe4add759.tar.gz Tango-8b4e0971171d40844ca1c63591aeb1fbe4add759.zip | |
Added DAL.Observables project.
Changes DB table CONFIGURATIONS_DISPENSER to IDS_PACKS.
CHanges DB table SYNC_CONFIGURATION to SYNC_CONFIGURATIONS
Diffstat (limited to 'Software/Visual_Studio/Tango.Synchronization/Remote')
| -rw-r--r-- | Software/Visual_Studio/Tango.Synchronization/Remote/RemoteDBComparer.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Software/Visual_Studio/Tango.Synchronization/Remote/RemoteDBComparer.cs b/Software/Visual_Studio/Tango.Synchronization/Remote/RemoteDBComparer.cs index 0bd76dbd1..82bc53c1f 100644 --- a/Software/Visual_Studio/Tango.Synchronization/Remote/RemoteDBComparer.cs +++ b/Software/Visual_Studio/Tango.Synchronization/Remote/RemoteDBComparer.cs @@ -40,7 +40,7 @@ namespace Tango.Synchronization.Remote LogManager.Log("Querying all local configurations..."); var local_configurations = _localDB.CONFIGURATIONS.ToList(); LogManager.Log("Querying all local configuration dispensers..."); - var local_configurations_dispensers = _localDB.CONFIGURATIONS_DISPENSERS.ToList(); + var local_configurations_dispensers = _localDB.IDS_PACKS.ToList(); LogManager.Log("Querying all local contacts..."); var local_contacts = _localDB.CONTACTS.ToList(); LogManager.Log("Querying all local dispensers..."); @@ -102,7 +102,7 @@ namespace Tango.Synchronization.Remote LogManager.Log("Querying all remote configurations dispensers..."); guids = remote_configurations.Select(x => x.GUID).ToList(); - var remote_configurations_dispensers = _remoteDB.CONFIGURATIONS_DISPENSERS.Where(x => guids.Contains(x.CONFIGURATION_GUID)).ToList(); + var remote_configurations_dispensers = _remoteDB.IDS_PACKS.Where(x => guids.Contains(x.CONFIGURATION_GUID)).ToList(); LogManager.Log("Querying all remote dispensers..."); guids = remote_configurations_dispensers.Select(x => x.DISPENSER_GUID).ToList(); @@ -113,7 +113,7 @@ namespace Tango.Synchronization.Remote var remote_cartridges = _remoteDB.CARTRIDGES.Where(x => guids.Contains(x.GUID)).ToList(); - foreach (var config in _remoteDB.SYNC_CONFIGURATION.Where(x => (SyncConfiguration)x.SYNC_TYPE == SyncConfiguration.OverwriteLocal)) + foreach (var config in _remoteDB.SYNC_CONFIGURATIONS.Where(x => (SyncConfiguration)x.SYNC_TYPE == SyncConfiguration.OverwriteLocal)) { OverrideTable(config); } @@ -129,7 +129,7 @@ namespace Tango.Synchronization.Remote CompareCollections(remote_configurations, local_configurations, _remoteDB.CONFIGURATIONS, _localDB.CONFIGURATIONS); LogManager.Log("Comparing configurations dispensers"); - CompareCollections(remote_configurations_dispensers, local_configurations_dispensers, _remoteDB.CONFIGURATIONS_DISPENSERS, _localDB.CONFIGURATIONS_DISPENSERS); + CompareCollections(remote_configurations_dispensers, local_configurations_dispensers, _remoteDB.IDS_PACKS, _localDB.IDS_PACKS); LogManager.Log("Comparing contacts"); CompareCollections(remote_contacts, local_contacts, _remoteDB.CONTACTS, _localDB.CONTACTS); @@ -211,7 +211,7 @@ namespace Tango.Synchronization.Remote } } - private void OverrideTable(remote.SYNC_CONFIGURATION config) + private void OverrideTable(remote.SYNC_CONFIGURATIONS config) { LogManager.Log("Generating table override difference for " + config.TABLE_NAME + "..."); |
