protected Dictionary<int, int> PerformUpsert(SqlConnection connection, ICollection<string> columnNames, IDataReader dataReader) { SqlTableSchema tempTableSchema = GetTempTableSchema(TargetTableSchema, columnNames); using(var upsert = new Upsert(connection, TargetTableSchema, tempTableSchema, columnNames)) { return upsert.Execute(dataReader); } }
protected Dictionary <int, int> PerformUpsert(SqlConnection connection, ICollection <string> columnNames, IDataReader dataReader) { SqlTableSchema tempTableSchema = GetTempTableSchema(TargetTableSchema, columnNames); using (var upsert = new Upsert(connection, TargetTableSchema, tempTableSchema, columnNames)) { return(upsert.Execute(dataReader)); } }