public SqlDbMonitor(string connStringName, string tableName, string columnNames, IChangeVersionManager versionManager, IEnumerable<IDataChangeHandler> handlers) { TableName = tableName; ColumnNames = columnNames; VersionManager = versionManager; Handlers = handlers == null ? Enumerable.Empty<IDataChangeHandler>() : handlers.Where(o => o.ConnectionStringName == connStringName && o.TableName == tableName); ConnectionStringName = connStringName; connectionString = System.Configuration.ConfigurationManager.ConnectionStrings[ConnectionStringName].ConnectionString; }
public SqlDbMonitor(string connStringName, string tableName, string columnNames, IChangeVersionManager versionManager, IEnumerable <IDataChangeHandler> handlers) { TableName = tableName; ColumnNames = columnNames; VersionManager = versionManager; Handlers = handlers == null?Enumerable.Empty <IDataChangeHandler>() : handlers.Where(o => o.ConnectionStringName == connStringName && o.TableName == tableName); ConnectionStringName = connStringName; connectionString = System.Configuration.ConfigurationManager.ConnectionStrings[ConnectionStringName].ConnectionString; }