Changeset 8c04982616c3…
Parent 7254b0d001c6…
by
Changes to 2 files · Browse files at 8c04982616c3 Showing diff from parent 7254b0d001c6 Diff from another changeset...
@@ -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,6 +42,7 @@ private String _assemblyId = null;
public delegate U ConvertColumnDelegate<T, U>(T currentValue);
+
#region Properties
public String AssemblyId
{
|
Loading...