Support CreateColumn<Guid>()

This commit is contained in:
qt1
2015-07-01 21:53:05 +03:00
parent dbba4e2787
commit 7bbad86eb4

View File

@@ -20,7 +20,10 @@ namespace Orchard.Data.Migration.Schema {
dbType = DbType.Boolean;
break;
default:
Enum.TryParse(Type.GetTypeCode(type).ToString(), true, out dbType);
if(type == typeof(Guid))
dbType = DbType.Guid;
else
Enum.TryParse(Type.GetTypeCode(type).ToString(), true, out dbType);
break;
}