• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






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 阅读(666) 评论(0) 推荐(0)
 
使用Dapper.SimpleCURD注意事项
摘要: 1.使用非自增列或者GUID列的主键时,需调用Insert--只要是非数字主键建议使用如下扩展方法 { TKey newId; using (IDbConnection conn = SessionFactory.CreateConnection(ConnectionStr)) { newId = 阅读全文
posted @ 2021-05-25 12:52 djd66 阅读(222) 评论(0) 推荐(0)