From 9da866e34dffc506793a2b71b27e405de74b1bfc Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 28 Jul 2017 21:29:07 +0800 Subject: [PATCH] Update Oracle --- .../Realization/Oracle/DbBind/OracleDbBind.cs | 56 +++++++++++-------- 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs b/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs index 15a7e1609..f4f964f86 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs @@ -13,34 +13,42 @@ namespace SqlSugar return new List>() { new KeyValuePair("int",CSharpDataType.@int), + new KeyValuePair("integer",CSharpDataType.@int), + new KeyValuePair("interval year to month",CSharpDataType.@int), + new KeyValuePair("interval day to second",CSharpDataType.@int), + + new KeyValuePair("number_int",CSharpDataType.@int), + new KeyValuePair("number_float",CSharpDataType.@float), + new KeyValuePair("number_short",CSharpDataType.@short), + new KeyValuePair("number_byte",CSharpDataType.@byte), + new KeyValuePair("number_double",CSharpDataType.@double), + new KeyValuePair("number_long",CSharpDataType.@long), + new KeyValuePair("number_bool",CSharpDataType.@bool), + new KeyValuePair("varchar",CSharpDataType.@string), - new KeyValuePair("nvarchar",CSharpDataType.@string), - new KeyValuePair("sql_variant",CSharpDataType.@string), - new KeyValuePair("text",CSharpDataType.@string), + new KeyValuePair("varchar2",CSharpDataType.@string), + new KeyValuePair("nvarchar2",CSharpDataType.@string), new KeyValuePair("char",CSharpDataType.@string), - new KeyValuePair("ntext",CSharpDataType.@string), new KeyValuePair("nchar",CSharpDataType.@string), - new KeyValuePair("bigint",CSharpDataType.@long), - new KeyValuePair("bit",CSharpDataType.@bool), - new KeyValuePair("datetime",CSharpDataType.DateTime), - new KeyValuePair("time",CSharpDataType.DateTime), - new KeyValuePair("smalldatetime",CSharpDataType.DateTime), - new KeyValuePair("timestamp",CSharpDataType.DateTime), - new KeyValuePair("datetime2",CSharpDataType.DateTime), + new KeyValuePair("clob",CSharpDataType.@string), + new KeyValuePair("long",CSharpDataType.@string), + new KeyValuePair("nclob",CSharpDataType.@string), + new KeyValuePair("rowid",CSharpDataType.@string), + new KeyValuePair("date",CSharpDataType.DateTime), - new KeyValuePair("decimal",CSharpDataType.@decimal), - new KeyValuePair("single",CSharpDataType.@decimal), - new KeyValuePair("money",CSharpDataType.@decimal), - new KeyValuePair("numeric",CSharpDataType.@decimal), - new KeyValuePair("smallmoney",CSharpDataType.@decimal), - new KeyValuePair("float",CSharpDataType.@double), - new KeyValuePair("real",CSharpDataType.@float), - new KeyValuePair("smallint",CSharpDataType.@short), - new KeyValuePair("tinyint",CSharpDataType.@byte), - new KeyValuePair("uniqueidentifier",CSharpDataType.Guid), - new KeyValuePair("binary",CSharpDataType.byteArray), - new KeyValuePair("image",CSharpDataType.byteArray), - new KeyValuePair("varbinary",CSharpDataType.byteArray)}; + new KeyValuePair("timestamp",CSharpDataType.DateTime), + new KeyValuePair("timestamp with local time zone",CSharpDataType.DateTime), + new KeyValuePair("timestamp with time zone",CSharpDataType.DateTime), + new KeyValuePair("timestamp with time zone",CSharpDataType.DateTime), + + new KeyValuePair("float",CSharpDataType.@decimal), + + new KeyValuePair("blob",CSharpDataType.byteArray), + new KeyValuePair("long raw",CSharpDataType.byteArray), + new KeyValuePair("raw",CSharpDataType.byteArray), + new KeyValuePair("bfile",CSharpDataType.byteArray), + new KeyValuePair("varbinary",CSharpDataType.byteArray) }; + } } }