Terry's blog

Focus on bigdata and cloud.

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 39 下一页

2009年4月8日 #

摘要: 转载阿紫衣衣 (1). We study spoken English so as to make oralcommunications, so this order of importance of oral English studyshould be followed: Fluency, Accuracy, and Appropriateness. That is tosay, we ha... 阅读全文
posted @ 2009-04-08 01:10 王晓成 阅读(725) 评论(0) 推荐(0) 编辑

2009年4月2日 #

摘要: 概述: 以前安装过SQLSERVER2000,现在安装2005,在控制面板的添加删除里把以前的2000删除掉,安装2005的一开始时时候出现如标题的错误. 解决办法: 首先,把安装Microsoft SQL Server文件夹整个删掉; 其次,运行regedit命令,进入注册表,删除如下项: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Mi... 阅读全文
posted @ 2009-04-02 14:27 王晓成 阅读(7847) 评论(0) 推荐(0) 编辑

摘要: 转载于http://download.microsoft.com/download/e/5/3/e53a74e2-9f13-4736-b263-df72af00a8f0/ReadmeSQLEXP2005Advanced.htm#_2460_obtaining_sql_server 目录 1.0 简介 2.0 下载并安装 SQL Server Express 2.1 .NET Framew... 阅读全文
posted @ 2009-04-02 14:12 王晓成 阅读(7498) 评论(0) 推荐(0) 编辑

2009年4月1日 #

摘要: 概述: 当用Nhibernate操作主从表时,往主表插入数据时,当执行到提交事务时出现如下错误: 此 OracleParameterCollection 的 Count=4 的索引 4 无效。 在 System.Data.OracleClient.OracleParameterCollection.RangeCheck(Int32 index) 在 System.Data.OracleC... 阅读全文
posted @ 2009-04-01 17:32 王晓成 阅读(1622) 评论(2) 推荐(0) 编辑

2009年3月26日 #

摘要: 概述: 当我们遇到把对象的属性及值显示在GridView的时候,我们需要把ojbect转化为DataTable来进行绑定. 代码如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/// /// Fills the Data... 阅读全文
posted @ 2009-03-26 13:59 王晓成 阅读(2031) 评论(1) 推荐(2) 编辑

2009年3月5日 #

摘要: 概述: 在项目中应用NHibernate架构时,会经常遇到多表查询.因为项目上要用到,通过多天的查询总结了以下两种解决方案. 解决方案: (1)使用HQL语句,然后把查询出的结果存入临时表中,然后再进行绑定. (2)使用select new OaxtJoinGlxt这种语法,根据查询的内容自己构建相应的实体类. 第一种方案实现具体过程: 我的需求如下: 我需要查询JkptOa... 阅读全文
posted @ 2009-03-05 10:01 王晓成 阅读(5115) 评论(10) 推荐(0) 编辑

2009年3月3日 #

摘要: Named SQL queries may be defined in the mapping document and called in exactly the same way as a named HQL query. In this case, we do not need to call AddEntity(). Code highlighting produced by Act... 阅读全文
posted @ 2009-03-03 17:38 王晓成 阅读(776) 评论(0) 推荐(0) 编辑

2009年2月26日 #

摘要: 概述: 在Nhibernate对数据记录进行更新的时候,如果对同一条记录进行重复执行修改时,出现如下错误: a different object with the same identifier value was already associated with the session: 25, of entity: Model.JkptOaxtWeatherforecast. 解决办法... 阅读全文
posted @ 2009-02-26 10:33 王晓成 阅读(1289) 评论(1) 推荐(0) 编辑

2009年2月24日 #

摘要: 概述: 当使用Nhibernate查询表中的数据时,如果表中存在复合主键,如果没有在相应的实体类中重写Equals(),那么将会出现"Could not compile the mapping document: TestCleanSnow.JkptGlxtUser.hbm.xml".当跟踪出错的内部信息的时候会发现,内部异常为"composite-id class must overrid... 阅读全文
posted @ 2009-02-24 16:46 王晓成 阅读(2492) 评论(4) 推荐(0) 编辑

2009年2月19日 #

摘要: 概述: 在用Nhibernate查询所返回的数据为IList,而我们经常需要的却是DataSet,所以很有必要这么一个方法. 代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/**/ /// /... 阅读全文
posted @ 2009-02-19 16:25 王晓成 阅读(1489) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 39 下一页