Exemplo n.º 1
0
 public void AddChangeCommand(IChangeCommand command)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Synchronizes the local database with that of the server.
 /// </summary>
 /// <returns>DateTime of last synchronization with the server. The database holds a "lastChanged" Date for all rows
 /// allowing the synchronization to get differences between the databases by simply using this date and take all rows with a lastChanged Date after
 /// the DateTime of last synchronization.
 /// </returns>
 public DateTime Sync(IChangeCommand[] commands)
 {
     //Do some synchronization.
     commands.ToList().ForEach(x => x.Execute());
     _lastSyncDateTime = DateTime.Now;
     return _lastSyncDateTime;
 }
Exemplo n.º 3
0
 public void AddChangeCommand(IChangeCommand command)
 {
     if (changeCommands.Contains(command))
         throw new Exception("ChangeCommand allready exists!");
     changeCommands.Add(command);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Synchronizes the local database with that of the server.
 /// </summary>
 /// <returns>DateTime of last synchronization with the server. The database holds a "lastChanged" Date for all rows
 /// allowing the synchronization to get differences between the databases by simply using this date and take all rows with a lastChanged Date after
 /// the DateTime of last synchronization.
 /// </returns>
 public DateTime Sync(IChangeCommand[] commands)
 {
     //Do some synchronization.
     commands.ToList().ForEach(x => x.SetOnlineContext(this));
     _lastSyncDateTime = DateTime.Now;
     return _lastSyncDateTime;
 }
Exemplo n.º 5
0
 public void AddChangeCommand(IChangeCommand command)
 {
     command.SetSeason(this);
     changeCommands.Add(command);
 }
Exemplo n.º 6
0
 public void AddChangeCommand(IChangeCommand command)
 {
     changeCommands.Add(command);
 }