Tag: C#连接MySQL预览模式: 普通 | 列表

C#连接MySQL 问题集锦及解决方案

问题1:

when casting from  a  number,the value must  be   a   number   less   than   infinity


解决办法:用Convert.ToInt32代替int

eg:  
this.SALEID = (int)value =>   this.SALEID = Convert.ToInt32(value);

原因:object不能用(int)转换


问题2:too many connections

解决办法:

查看更多...

Tags: C#连接MySQL too many connections

分类:编程技术 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 6923