简体   繁体   English

Oracle中的Number(5)在C#中是什么意思

[英]Number(5) in Oracle what is it meaning in C#

I created my table and one of my column area is Number(5), 我创建了表格,其中一个列区域是Number(5),

 PROJECT_CODE  NUMBER(5)  NOT NULL ,

when i entegred it in my model in c# it is look like; 当我在C#中将其纳入模型时,它看起来像;

  public global::System.Int16 PROJECT_CODE

my question is why it is getting to Int16 because int16 meaning short and max value is "32767" if my value will be 32768 oracle will be okay but what about c#? 我的问题是为什么要进入Int16,因为int16的含义是short,最大值是“ 32767”,如果我的值是32768,oracle可以,但是c#怎么办?

because odpnet have a specification that inform of this state of fact. 因为odpnet拥有说明此事实状态的规范。

oracle datatype mapping for .net NET的oracle数据类型映射

In code execution you can have an issue if you manually set a value with an incorrect range. 在代码执行中,如果您手动设置范围错误的值,则可能会遇到问题。 I recommand to use same application to set value, that guarantee the process. 我建议使用同一应用程序来设置值,以确保过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM