Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 POCO:
public class Role { public Int32 Id { get; set; } public string Name { set; get; } }
Oracle 表是Id NUMBER(10,0)和Name VARCHAR2(100 CHAR)
Id NUMBER(10,0)
Name VARCHAR2(100 CHAR)
Dapper 插入得很好,但是当我读取记录时,它会将 Id 带为十进制,并且出现解析器错误。不,我不能在 POCO 类中将 Int32 Id 更改为十进制 Id。
感谢 Alex 我安装了 ODP.net 并且它工作正常。