Oracle数据类型(OracleDbType)名称对应.NET类型(Type)
Oracle数据类型(OracleDbType)名称对应.NET类型(Type)
C# Code:
/// <summary>
/// Oracle数据类型名称(如:CLOB,BLOG)对应.NET类型
/// Oracle数据类型(OracleDbType)名称对应.NET类型(Type)
/// </summary>
public static IDictionary<string, Type> OracleDbTypeName2NetTypeMapping
{
get
{
IDictionary<string, Type> map = new Dictionary<string, Type>();
map.Add("BFile", typeof(System.Byte[]));
map.Add("Binary_Double", typeof(System.Double));
map.Add("Binary_Float", typeof(System.Single));
map.Add("Blob", typeof(System.Byte[]));
map.Add("Boolean", typeof(System.Boolean));
map.Add("Byte", typeof(System.Byte));
map.Add("Char", typeof(System.Char));
map.Add("Clob", typeof(System.String));
map.Add("Date", typeof(System.DateTime));
map.Add("Decimal", typeof(System.Decimal));
map.Add("Double", typeof(System.Double));
map.Add("Float", typeof(System.Single));
map.Add("Int16", typeof(System.Int16));
map.Add("Int32", typeof(System.Int32));
map.Add("Int64", typeof(System.Int64));
map.Add("Integer", typeof(System.Int32));
map.Add("IntervalDS", typeof(System.Double));//OracleIntervalDS(double totalDays);
map.Add("IntervalYM", typeof(System.Int32));
map.Add("Long", typeof(System.String));//Text
map.Add("LongRaw", typeof(System.Byte[]));
map.Add("NChar", typeof(System.String));
map.Add("NClob", typeof(System.String));
map.Add("Number", typeof(System.Decimal));
map.Add("Numeric", typeof(System.Decimal));
map.Add("NVarchar2", typeof(System.String));
map.Add("Raw", typeof(System.Byte[]));
map.Add("Real", typeof(System.Decimal));
map.Add("RefCursor", typeof(System.Object));//游标类型
map.Add("RowID", typeof(System.String));
map.Add("Single", typeof(System.Single));
map.Add("SmallInt", typeof(System.Int16));
map.Add("TimeStamp", typeof(System.DateTime));
map.Add("TimeStampLTZ", typeof(System.DateTime));
map.Add("TimeStampTZ", typeof(System.DateTime));
map.Add("UROWID", typeof(System.String));
map.Add("Varchar", typeof(System.String));
map.Add("Varchar2", typeof(System.String));
map.Add("XmlType", typeof(System.String));
return map;
}
}
//来源:C/S框架网 | www.csframework.com | QQ:23404761
/// <summary>
/// Oracle数据类型名称(如:CLOB,BLOG)对应.NET类型
/// Oracle数据类型(OracleDbType)名称对应.NET类型(Type)
/// </summary>
public static IDictionary<string, Type> OracleDbTypeName2NetTypeMapping
{
get
{
IDictionary<string, Type> map = new Dictionary<string, Type>();
map.Add("BFile", typeof(System.Byte[]));
map.Add("Binary_Double", typeof(System.Double));
map.Add("Binary_Float", typeof(System.Single));
map.Add("Blob", typeof(System.Byte[]));
map.Add("Boolean", typeof(System.Boolean));
map.Add("Byte", typeof(System.Byte));
map.Add("Char", typeof(System.Char));
map.Add("Clob", typeof(System.String));
map.Add("Date", typeof(System.DateTime));
map.Add("Decimal", typeof(System.Decimal));
map.Add("Double", typeof(System.Double));
map.Add("Float", typeof(System.Single));
map.Add("Int16", typeof(System.Int16));
map.Add("Int32", typeof(System.Int32));
map.Add("Int64", typeof(System.Int64));
map.Add("Integer", typeof(System.Int32));
map.Add("IntervalDS", typeof(System.Double));//OracleIntervalDS(double totalDays);
map.Add("IntervalYM", typeof(System.Int32));
map.Add("Long", typeof(System.String));//Text
map.Add("LongRaw", typeof(System.Byte[]));
map.Add("NChar", typeof(System.String));
map.Add("NClob", typeof(System.String));
map.Add("Number", typeof(System.Decimal));
map.Add("Numeric", typeof(System.Decimal));
map.Add("NVarchar2", typeof(System.String));
map.Add("Raw", typeof(System.Byte[]));
map.Add("Real", typeof(System.Decimal));
map.Add("RefCursor", typeof(System.Object));//游标类型
map.Add("RowID", typeof(System.String));
map.Add("Single", typeof(System.Single));
map.Add("SmallInt", typeof(System.Int16));
map.Add("TimeStamp", typeof(System.DateTime));
map.Add("TimeStampLTZ", typeof(System.DateTime));
map.Add("TimeStampTZ", typeof(System.DateTime));
map.Add("UROWID", typeof(System.String));
map.Add("Varchar", typeof(System.String));
map.Add("Varchar2", typeof(System.String));
map.Add("XmlType", typeof(System.String));
return map;
}
}
//来源:C/S框架网 | www.csframework.com | QQ:23404761

参考文档:
Oracle数据类型(OracleDbType)名称对应DbType类型
Oracle数据类型(OracleDbType)与.NET类型(Type)对应关系
MySql数据类型(MySqlDbType)名称对应.NET类型(Type)
MsSql数据类型(SqlDbType)名称对应.NET类型(Type)
将SQLServer数据类型转换为.Net中SqlDbType类型
SqlServer数据类型、DbType类型、.NET类型与达梦数据类型关系表|C/S开发框架
MySQL数据类型(MySqlDbType)数据类型名称对应DbType类型
MsSQL数据类型(SqlDbType)名称对应DbType类型
MySql数据类型(MySqlDbType)与.NET类型(Type)对应关系
MsSql数据类型(SqlDbType)与.NET类型(Type)对应关系
DbType与C#.NET数据类型(Type)对应关系
C#.NET数据类型(Type)与DbType的对应关系
MsSQL/MySQL/Oracle三种常用数据库数据类型(Data Type)对应关系表
C#.NET 处理SQL特殊数据类型Geography/Geometry/Hierarchyid/XML
EFCore+.NET8:使用Oracle数据库提交大图片文件需要指定BLOB类型|C/S开发框架
SQL Server 数据类型对应.NET类型的EF模型定义|C/S开发框架
Oracle数据类型(OracleDbType)名称对应DbType类型
Oracle数据类型(OracleDbType)与.NET类型(Type)对应关系
MySql数据类型(MySqlDbType)名称对应.NET类型(Type)
MsSql数据类型(SqlDbType)名称对应.NET类型(Type)
将SQLServer数据类型转换为.Net中SqlDbType类型
SqlServer数据类型、DbType类型、.NET类型与达梦数据类型关系表|C/S开发框架
MySQL数据类型(MySqlDbType)数据类型名称对应DbType类型
MsSQL数据类型(SqlDbType)名称对应DbType类型
MySql数据类型(MySqlDbType)与.NET类型(Type)对应关系
MsSql数据类型(SqlDbType)与.NET类型(Type)对应关系
DbType与C#.NET数据类型(Type)对应关系
C#.NET数据类型(Type)与DbType的对应关系
MsSQL/MySQL/Oracle三种常用数据库数据类型(Data Type)对应关系表
C#.NET 处理SQL特殊数据类型Geography/Geometry/Hierarchyid/XML
EFCore+.NET8:使用Oracle数据库提交大图片文件需要指定BLOB类型|C/S开发框架
SQL Server 数据类型对应.NET类型的EF模型定义|C/S开发框架
其它资料:
什么是C/S结构? | C/S框架核心组成部分 | C/S框架-WebService部署图 | C/S框架-权限管理 | C/S结构系统框架 - 5.1旗舰版介绍 | C/S结构系统框架 - 功能介绍 | C/S结构系统框架 - 产品列表 | C/S结构系统框架 - 应用展示(图) | 三层体系架构详解 | C/S架构轻量级快速开发框架 | C/S框架网客户案例 | WebApi快速开发框架 | C/S框架代码生成器 | 用户授权注册软件系统 | 版本自动升级软件 | 数据库底层应用框架 | CSFramework.CMS内容管理系统 |
什么是C/S结构? | C/S框架核心组成部分 | C/S框架-WebService部署图 | C/S框架-权限管理 | C/S结构系统框架 - 5.1旗舰版介绍 | C/S结构系统框架 - 功能介绍 | C/S结构系统框架 - 产品列表 | C/S结构系统框架 - 应用展示(图) | 三层体系架构详解 | C/S架构轻量级快速开发框架 | C/S框架网客户案例 | WebApi快速开发框架 | C/S框架代码生成器 | 用户授权注册软件系统 | 版本自动升级软件 | 数据库底层应用框架 | CSFramework.CMS内容管理系统 |
在线客服
