public override int Synchronize(int objectID, int modifiedUserID, DateTime modifiedDate, int action, bool isOnline, byte[] b) { var connectionString = (isOnline ? ConfigurationManagerEx.ConnectionString : ConfigurationManagerEx.OfflineConnectionString); var commandTimeout = (isOnline ? ConfigurationManagerEx.CommandTimeout : ConfigurationManagerEx.OfflineCommandTimeout); using (var adapter = SynchronizationQueriesAdapter.CreateInstance(connectionString, commandTimeout)) { return((int)adapter.SP_Synchronize(objectID, modifiedUserID, modifiedDate, action, b.GetXmlData())); } }
public override DateTime GetDate(int objectID, bool isOnline) { var connectionString = (isOnline ? ConfigurationManagerEx.ConnectionString : ConfigurationManagerEx.OfflineConnectionString); var commandTimeout = (isOnline ? ConfigurationManagerEx.CommandTimeout : ConfigurationManagerEx.OfflineCommandTimeout); using (var adapter = SynchronizationQueriesAdapter.CreateInstance(connectionString, commandTimeout)) { return((DateTime)adapter.SP_GetDate(objectID)); } }