public void AddChangeCommand(IChangeCommand command) { throw new NotImplementedException(); }
/// <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; }
public void AddChangeCommand(IChangeCommand command) { if (changeCommands.Contains(command)) throw new Exception("ChangeCommand allready exists!"); changeCommands.Add(command); }
/// <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; }
public void AddChangeCommand(IChangeCommand command) { command.SetSeason(this); changeCommands.Add(command); }
public void AddChangeCommand(IChangeCommand command) { changeCommands.Add(command); }