From 219f5e656fb87c004c3318bf8f3fb17f39e28fb7 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 8 Aug 2017 18:04:05 +0800 Subject: [PATCH] Database type support --- Src/Asp.Net/SqlSugar/Realization/MySql/DbBind/MySqlDbBind.cs | 1 + .../SqlSugar/Realization/SqlServer/DbBind/SqlServerDbBind.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/Realization/MySql/DbBind/MySqlDbBind.cs b/Src/Asp.Net/SqlSugar/Realization/MySql/DbBind/MySqlDbBind.cs index c04fda0df..e246fb0e4 100644 --- a/Src/Asp.Net/SqlSugar/Realization/MySql/DbBind/MySqlDbBind.cs +++ b/Src/Asp.Net/SqlSugar/Realization/MySql/DbBind/MySqlDbBind.cs @@ -66,6 +66,7 @@ namespace SqlSugar new KeyValuePair("geometry",CSharpDataType.byteArray), new KeyValuePair("multilinestring",CSharpDataType.byteArray), new KeyValuePair("polygon",CSharpDataType.byteArray), + new KeyValuePair("mediumblob",CSharpDataType.byteArray), new KeyValuePair("varchar",CSharpDataType.Guid), }; diff --git a/Src/Asp.Net/SqlSugar/Realization/SqlServer/DbBind/SqlServerDbBind.cs b/Src/Asp.Net/SqlSugar/Realization/SqlServer/DbBind/SqlServerDbBind.cs index e343ae1be..77db336d2 100644 --- a/Src/Asp.Net/SqlSugar/Realization/SqlServer/DbBind/SqlServerDbBind.cs +++ b/Src/Asp.Net/SqlSugar/Realization/SqlServer/DbBind/SqlServerDbBind.cs @@ -20,6 +20,7 @@ namespace SqlSugar new KeyValuePair("char",CSharpDataType.@string), new KeyValuePair("ntext",CSharpDataType.@string), new KeyValuePair("nchar",CSharpDataType.@string), + new KeyValuePair("hierarchyid",CSharpDataType.@string), new KeyValuePair("bigint",CSharpDataType.@long), new KeyValuePair("bit",CSharpDataType.@bool), new KeyValuePair("datetime",CSharpDataType.DateTime),