Exemplo n.º 1
0
        /// <summary>
        /// Add each column that you want to include in the query. Only include the columns that are relevant to the procedure for best performance.
        /// </summary>
        /// <param name="columnName">Column name as represented in database</param>
        /// <returns></returns>
        public ColumnSelect <T> AddColumn(Expression <Func <T, object> > columnName)
        {
            var propertyName = _helper.GetPropertyName(columnName);

            Columns.Add(propertyName);
            return(new ColumnSelect <T>(_list, _tableName, Columns, _schema, _sourceAlias, _targetAlias,
                                        _sqlTimeout, _bulkCopyTimeout, _bulkCopyEnableStreaming, _bulkCopyNotifyAfter, _bulkCopyBatchSize, _sqlBulkCopyOptions, _ext));
        }