Skip to content

Commit

Permalink
ADDED: SQLServer.ttinclude now recognizes XML datatype and returns Db…
Browse files Browse the repository at this point in the history
…Type.XML instead of string
  • Loading branch information
robconery committed Jul 15, 2009
1 parent 43eebfe commit 76fe8de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ActiveRecord/SQLServer.ttinclude
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ DbType GetDbType(string sqlType){
return DbType.Byte;
case "varbinary":
return DbType.Binary;
default:
case "xml":
return DbType.Xml;
default:
return DbType.AnsiString;
}

Expand Down
2 changes: 2 additions & 0 deletions LinqTemplates/SQLServer.ttinclude
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ DbType GetDbType(string sqlType){
return DbType.Byte;
case "varbinary":
return DbType.Binary;
case "xml":
return DbType.Xml;
default:
return DbType.AnsiString;
}
Expand Down

0 comments on commit 76fe8de

Please sign in to comment.