diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-11-27 21:51:38 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-11-27 21:51:38 +0200 |
| commit | df2f9b27b12356d6e92c64a72049f0fc4e6b86c0 (patch) | |
| tree | 049ced63087ef30986cc998f8546071e5894e37e /Software/Visual_Studio/Tango.Synchronization/Remote | |
| parent | 7060dc80c707fc0441ff69fe4f899107cb3f6fc1 (diff) | |
| download | Tango-df2f9b27b12356d6e92c64a72049f0fc4e6b86c0.tar.gz Tango-df2f9b27b12356d6e92c64a72049f0fc4e6b86c0.zip | |
Started Remote <=> Local Synchronization... /;
Diffstat (limited to 'Software/Visual_Studio/Tango.Synchronization/Remote')
| -rw-r--r-- | Software/Visual_Studio/Tango.Synchronization/Remote/RemoteDBComparer.cs | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Synchronization/Remote/RemoteDBComparer.cs b/Software/Visual_Studio/Tango.Synchronization/Remote/RemoteDBComparer.cs new file mode 100644 index 000000000..1635e6fa7 --- /dev/null +++ b/Software/Visual_Studio/Tango.Synchronization/Remote/RemoteDBComparer.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using remote = Tango.DAL.Remote.DB; +using local = Tango.DAL.Local.DB; + +namespace Tango.Synchronization.Remote +{ + public class RemoteDBComparer : IDisposable + { + private remote.RemoteDB _remoteDB; + private local.LocalDB _localDB; + private String _machineSerial; + + public RemoteDBComparer(remote.RemoteDB remoteDB, local.LocalDB localDB,String machineSerial) + { + _machineSerial = machineSerial; + _remoteDB = remoteDB; + _localDB = localDB; + } + + public List<Diff> Compare() + { + List<Diff> diffs = new List<Diff>(); + + var remoteMachine = _remoteDB.MACHINES.SingleOrDefault(x => x.SERIAL_NUMBER == _machineSerial); + + + //var localMachine = _localDB.MACHINES.SingleOrDefault(x => x.Se) + + + + + return diffs; + } + + public void Dispose() + { + _remoteDB.Dispose(); + _localDB.Dispose(); + } + } +} |
