OpenSource » Database Migrator » Legacy Migrator
Clone URL:  

Migrator Modified the ConvertColumn function so that the reader is available to the converter. This is done so that the function can read other values pertaining to that data value being converted.

Changeset a8d9a7cac75b

Parent 8c04982616c3

by jasoncline

Changes to 2 files · Browse files at a8d9a7cac75b Showing diff from parent 8c04982616c3 Diff from another changeset...

 
253
254
255
256
 
257
258
259
 
253
254
255
 
256
257
258
259
@@ -253,7 +253,7 @@
  {   if (!reader.IsDBNull(0))   { - U value = convertFunc.Invoke((T)reader.GetValue(0)); + U value = convertFunc.Invoke((T)reader.GetValue(0), reader);   if (!data.Contains(reader.GetValue(0)))   data.Add(reader.GetValue(0), value);   }
 
41
42
43
44
 
45
46
47
 
41
42
43
 
44
45
46
47
@@ -41,7 +41,7 @@
  private IDbTransaction _transaction;   private String _assemblyId = null;   - public delegate U ConvertColumnDelegate<T, U>(T currentValue); + public delegate U ConvertColumnDelegate<T, U>(T currentValue, IDataReader row);     #region Properties   public String AssemblyId