#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member

        /// <summary>
        ///
        /// </summary>
        /// <param name="list"></param>
        /// <param name="tableName"></param>
        /// <param name="columns"></param>
        /// <param name="customColumnMappings"></param>
        /// <param name="schema"></param>
        /// <param name="bulkCopySettings"></param>
        /// <param name="propertyInfoList"></param>
        protected AbstractColumnSelection(IEnumerable <T> list, string tableName, HashSet <string> columns, Dictionary <string, string> customColumnMappings, string schema, BulkCopySettings bulkCopySettings, List <PropertyInfo> propertyInfoList)
        {
            _disableAllIndexes    = false;
            _customColumnMappings = customColumnMappings;
            _list             = list;
            _tableName        = tableName;
            _columns          = columns;
            _schema           = schema;
            _bulkCopySettings = bulkCopySettings;
            _propertyInfoList = propertyInfoList;
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="list"></param>
        /// <param name="tableName"></param>
        /// <param name="schema"></param>
        /// <param name="columns"></param>
        /// <param name="customColumnMappings"></param>
        /// <param name="bulkCopySettings"></param>
        /// <param name="propertyInfoList"></param>
        public BulkInsertOrUpdate(IEnumerable <T> list, string tableName, string schema, HashSet <string> columns,
                                  Dictionary <string, string> customColumnMappings, BulkCopySettings bulkCopySettings, List <PropertyInfo> propertyInfoList) :

            base(list, tableName, schema, columns, customColumnMappings, bulkCopySettings, propertyInfoList)
        {
            _deleteWhenNotMatchedFlag = false;
            _updatePredicates         = new List <PredicateCondition>();
            _deletePredicates         = new List <PredicateCondition>();
            _parameters         = new List <SqlParameter>();
            _conditionSortOrder = 1;
            _excludeFromUpdate  = new HashSet <string>();
            _nullableColumnDic  = new Dictionary <string, bool>();
        }
Пример #3
0
        #pragma warning restore CS1591 // Missing XML comment for publicly visible type or member

        /// <summary>
        ///
        /// </summary>
        /// <param name="list"></param>
        /// <param name="tableName"></param>
        /// <param name="schema"></param>
        /// <param name="columns"></param>
        /// <param name="customColumnMappings"></param>
        /// <param name="bulkCopySettings"></param>
        protected AbstractOperation(IEnumerable <T> list, string tableName, string schema, HashSet <string> columns,
                                    Dictionary <string, string> customColumnMappings, BulkCopySettings bulkCopySettings)
        {
            _list                 = list;
            _tableName            = tableName;
            _schema               = schema;
            _columns              = columns;
            _disableAllIndexes    = false;
            _customColumnMappings = customColumnMappings;
            _identityColumn       = null;
            _collationColumnDic   = new Dictionary <string, string>();
            _outputIdentityDic    = new Dictionary <int, T>();
            _outputIdentity       = ColumnDirectionType.Input;
            _matchTargetOn        = new List <string>();
            _bulkCopySettings     = bulkCopySettings;
            _tableHint            = "HOLDLOCK";
        }
Пример #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="list"></param>
 /// <param name="tableName"></param>
 /// <param name="columns"></param>
 /// <param name="customColumnMappings"></param>
 /// <param name="schema"></param>
 /// <param name="bulkCopySettings"></param>
 /// <param name="propertyInfoList"></param>
 public BulkAddColumnList(BulkOperations bulk, IEnumerable <T> list, string tableName, HashSet <string> columns, Dictionary <string, string> customColumnMappings,
                          string schema, BulkCopySettings bulkCopySettings, List <PropertyInfo> propertyInfoList)
     :
     base(bulk, list, tableName, columns, customColumnMappings, schema, bulkCopySettings, propertyInfoList)
 {
 }
Пример #5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="list"></param>
        /// <param name="tableName"></param>
        /// <param name="schema"></param>
        /// <param name="columns"></param>
        /// <param name="customColumnMappings"></param>
        /// <param name="bulkCopySettings"></param>
        /// <param name="propertyInfoList"></param>
        public BulkInsert(IEnumerable <T> list, string tableName, string schema, HashSet <string> columns,
                          Dictionary <string, string> customColumnMappings, BulkCopySettings bulkCopySettings, List <PropertyInfo> propertyInfoList) :

            base(list, tableName, schema, columns, customColumnMappings, bulkCopySettings, propertyInfoList)
        {
        }
Пример #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="list"></param>
 /// <param name="tableName"></param>
 /// <param name="columns"></param>
 /// <param name="customColumnMappings"></param>
 /// <param name="schema"></param>
 /// <param name="bulkCopySettings"></param>
 public BulkAddColumn(IEnumerable <T> list, string tableName, HashSet <string> columns, Dictionary <string, string> customColumnMappings, string schema, BulkCopySettings bulkCopySettings) :
     base(list, tableName, columns, customColumnMappings, schema, bulkCopySettings)
 {
 }