Пример #1
0
        public SQLBindingAsyncCollector(SQLBindingAttribute attribute,
                                        IDBService dbService, INameResolver nameResolver)
        {
            if (attribute == null)
            {
                throw new ArgumentNullException(nameof(attribute));
            }
            if (dbService == null)
            {
                throw new ArgumentNullException(nameof(dbService));
            }
            if (nameResolver == null)
            {
                throw new ArgumentNullException(nameof(nameResolver));
            }

            this._attribute    = attribute;
            this._nameResolver = nameResolver;
            this._dbService    = dbService;

            this._dbService.SetConfiguration(new DBConfiguration()
            {
                ConnectionString = attribute.ConnectionString
            });
        }
Пример #2
0

        
Пример #3
0
 public IAsyncCollector <TableRowData> Convert(SQLBindingAttribute attribute)
 {
     return(new SQLBindingAsyncCollector(attribute, _dbService, _nameResolver));
 }