Dapper Oracle Number(10,0) is returned as Decimal Parser error

雨燕双飞 提交于 2019-12-10 23:26:38

问题


I have a POCO:

public class Role
{
   public Int32 Id { get; set; }
   public string Name { set; get; }
}

The Oracle table is Id NUMBER(10,0) and Name VARCHAR2(100 CHAR)

Dapper inserts fine but when I read the records it bring the Id as decimal and I get a parser error. And NO, I can't change the Int32 Id to decimal Id in POCO class.


回答1:


Thanks to Alex I installed ODP.net and it worked.



来源:https://stackoverflow.com/questions/10000203/dapper-oracle-number10-0-is-returned-as-decimal-parser-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!