mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Support CreateColumn<Guid>()
This commit is contained in:
@@ -20,6 +20,9 @@ namespace Orchard.Data.Migration.Schema {
|
||||
dbType = DbType.Boolean;
|
||||
break;
|
||||
default:
|
||||
if(type == typeof(Guid))
|
||||
dbType = DbType.Guid;
|
||||
else
|
||||
Enum.TryParse(Type.GetTypeCode(type).ToString(), true, out dbType);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user