Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

Commit

Permalink
Oracle代码生成
Browse files Browse the repository at this point in the history
  • Loading branch information
Coldairarrow committed Oct 5, 2019
1 parent 3a7050d commit a1f3028
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/Coldairarrow.Util/DataAccess/OracleHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,28 @@ public OracleHelper(string nameOrConStr)

protected override Dictionary<string, Type> DbTypeDic { get; } = new Dictionary<string, Type>()
{
{ "BFILE", typeof(byte[]) },
{ "BLOB", typeof(byte[]) },
{ "CHAR", typeof(string) },
{ "CLOB", typeof(string) },
{ "DATE", typeof(DateTime) },
{ "FLOAT", typeof(decimal) },
{ "INTEGER", typeof(decimal) },
{ "INTERVAL YEAR TO MONTH", typeof(Int32) },
{ "INTERVAL DAY TO SECOND", typeof(TimeSpan) },
{ "LONG", typeof(string) },
{ "LONG RAW", typeof(string[]) },
{ "NCHAR", typeof(string) },
{ "NCLOB", typeof(string) },
{ "NUMBER", typeof(decimal) },
{ "NVARCHAR2", typeof(string) },
{ "RAW", typeof(byte[]) },
{ "ROWID", typeof(string) },
{ "TIMESTAMP", typeof(DateTime) },
{ "TIMESTAMP WITH LOCAL TIME ZONE", typeof(DateTime) },
{ "TIMESTAMP WITH TIME ZONE", typeof(DateTime) },
{ "UNSIGNED INTEGER", typeof(decimal) },
{ "VARCHAR2", typeof(string) }
{ "bfile", typeof(byte[]) },
{ "blob", typeof(byte[]) },
{ "char", typeof(string) },
{ "clob", typeof(string) },
{ "date", typeof(DateTime) },
{ "float", typeof(decimal) },
{ "integer", typeof(decimal) },
{ "interval year to month", typeof(int) },
{ "interval day to second", typeof(TimeSpan) },
{ "long", typeof(string) },
{ "long raw", typeof(string[]) },
{ "nchar", typeof(string) },
{ "nclob", typeof(string) },
{ "number", typeof(decimal) },
{ "nvarchar2", typeof(string) },
{ "raw", typeof(byte[]) },
{ "rowid", typeof(string) },
{ "timestamp", typeof(DateTime) },
{ "timestamp with local time zone", typeof(DateTime) },
{ "timestamp with time zone", typeof(DateTime) },
{ "unsigned integer", typeof(decimal) },
{ "varchar2", typeof(string) }
};

#endregion
Expand Down

0 comments on commit a1f3028

Please sign in to comment.