OpenSource » Database Migrator » Legacy Migrator
Clone URL:  

Migrator Informed parts of the migerator that nullable guids do indeed exist.

Changeset 8c04982616c3

Parent 7254b0d001c6

by jasoncline

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

 
473
474
475
476
 
477
 
 
478
479
480
 
546
547
548
549
 
550
551
552
 
473
474
475
 
476
477
478
479
480
481
482
 
548
549
550
 
551
552
553
554
@@ -473,8 +473,10 @@
  /// <returns></returns>   private string ToSqlValue(Type type, object value)   { - if (type == typeof(string) || (type == typeof(char)) || (type == typeof(DateTime)) || type == typeof(Guid)) + if (type == typeof(string) || (type == typeof(char)) || (type == typeof(DateTime)) || type == typeof(Guid)|| type == typeof(Guid?))   { + if (value == null) + return "null";   return String.Format("'{0}'", value.ToString());   }   else if (type == typeof(int) || type == typeof(Int64) || type == typeof(long) || type == typeof(float) || type == typeof(double)) @@ -546,7 +548,7 @@
  {   return string.Format("nchar({0})", size);   } - else if (type == typeof(Guid)) + else if (type == typeof(Guid) || type == typeof(Guid?))   {   return "uniqueidentifier";   }
 
42
43
44
 
45
46
47
 
42
43
44
45
46
47
48
@@ -42,6 +42,7 @@
  private String _assemblyId = null;     public delegate U ConvertColumnDelegate<T, U>(T currentValue); +   #region Properties   public String AssemblyId   {