问题
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