会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
djd66
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2021年5月25日
Unable to cast object of type 'System.Int32' to type 'System.String'.
摘要: 关键错误点Unable to cast object of type 'System.Int32' to type 'System.String'.提示是无法将“System.Int32”的对象强制转换为“System.String”。于是我就找了所有使用Int的地方,终于发现 /// <summa
阅读全文
posted @ 2021-05-25 12:53 djd66
阅读(586)
评论(0)
推荐(0)
编辑
使用Dapper.SimpleCURD注意事项
摘要: 1.使用非自增列或者GUID列的主键时,需调用Insert--只要是非数字主键建议使用如下扩展方法 { TKey newId; using (IDbConnection conn = SessionFactory.CreateConnection(ConnectionStr)) { newId =
阅读全文
posted @ 2021-05-25 12:52 djd66
阅读(176)
评论(0)
推荐(0)
编辑