From 09ed62cf6524ad614a98d0cb5ca8c7c2a8698130 Mon Sep 17 00:00:00 2001 From: Mark Beaton Date: Tue, 21 Apr 2015 10:27:39 +1000 Subject: [PATCH] Added CLR mappings for "uuid" and "guid" SQL types --- src/Simple.Data.Sqlite/SqliteTypeResolver.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Simple.Data.Sqlite/SqliteTypeResolver.cs b/src/Simple.Data.Sqlite/SqliteTypeResolver.cs index 3a94022..3bfb4a9 100644 --- a/src/Simple.Data.Sqlite/SqliteTypeResolver.cs +++ b/src/Simple.Data.Sqlite/SqliteTypeResolver.cs @@ -10,6 +10,8 @@ public class SqliteTypeResolver {"image", typeof (byte[])}, {"text", typeof (string)}, {"uniqueidentifier", typeof (Guid)}, + {"guid", typeof (Guid)}, + {"uuid", typeof (Guid)}, {"date", typeof (DateTime)}, {"time", typeof (DateTime)}, {"datetime2", typeof (DateTime)}, @@ -47,4 +49,4 @@ public static Type GetClrType(string sqlTypeName) return ClrTypes.TryGetValue(sqlTypeName, out clrType) ? clrType : typeof(object); } } -} \ No newline at end of file +}