Browse Source

Database type support

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
219f5e656f
  1. 1
      Src/Asp.Net/SqlSugar/Realization/MySql/DbBind/MySqlDbBind.cs
  2. 1
      Src/Asp.Net/SqlSugar/Realization/SqlServer/DbBind/SqlServerDbBind.cs

1
Src/Asp.Net/SqlSugar/Realization/MySql/DbBind/MySqlDbBind.cs

@ -66,6 +66,7 @@ namespace SqlSugar
new KeyValuePair<string, CSharpDataType>("geometry",CSharpDataType.byteArray),
new KeyValuePair<string, CSharpDataType>("multilinestring",CSharpDataType.byteArray),
new KeyValuePair<string, CSharpDataType>("polygon",CSharpDataType.byteArray),
new KeyValuePair<string, CSharpDataType>("mediumblob",CSharpDataType.byteArray),
new KeyValuePair<string, CSharpDataType>("varchar",CSharpDataType.Guid),
};

1
Src/Asp.Net/SqlSugar/Realization/SqlServer/DbBind/SqlServerDbBind.cs

@ -20,6 +20,7 @@ namespace SqlSugar
new KeyValuePair<string, CSharpDataType>("char",CSharpDataType.@string),
new KeyValuePair<string, CSharpDataType>("ntext",CSharpDataType.@string),
new KeyValuePair<string, CSharpDataType>("nchar",CSharpDataType.@string),
new KeyValuePair<string, CSharpDataType>("hierarchyid",CSharpDataType.@string),
new KeyValuePair<string, CSharpDataType>("bigint",CSharpDataType.@long),
new KeyValuePair<string, CSharpDataType>("bit",CSharpDataType.@bool),
new KeyValuePair<string, CSharpDataType>("datetime",CSharpDataType.DateTime),

Loading…
Cancel
Save