示例#1
0
 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;
 }
示例#2
0
        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;
        }