摘要: 类中的字段类型需要和数据库的字段类型匹配,大小写无关. 类中自定义的字段(数据库没有)将无法从datatable中取值 以下是源代码: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> /**//// /// 依据反射... 阅读全文
posted @ 2009-02-02 17:32 扯 阅读(580) 评论(0) 推荐(0) 编辑
摘要: 这里的类实例拥有的字段类型和数量大于等于DataTable中的列,类实例的字段对应DataTable中的一列,类实例还可以有自定义的字段,不包含在DataTable列中: 源代码如下: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> ... 阅读全文
posted @ 2009-02-02 17:31 扯 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 类中的字段类型和数据库(datatable)中的字段类型需要一直,大小写无关. 类中的可以有datatable没有的属性 源代码如下: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> /**//// /// 依据反射机制从b... 阅读全文
posted @ 2009-02-02 17:30 扯 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 当窗体拖入crystalReportViewer控件并运行时一定几率会在InitializeComponent()方法中 this.crystalReportViewer1 = new CrystalDecisions.Windows.Forms.CrystalReportViewer();这条语句发生异常,这个异常以前从来没有碰到过,网上有人遇到过,可是没看到解决... 阅读全文
posted @ 2009-02-02 14:35 扯 阅读(3666) 评论(2) 推荐(0) 编辑