Example #1
0
		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);
			}
		}
Example #2
0
        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));
            }
        }