摘要:
转载阿紫衣衣 (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... 阅读全文
2009年4月8日 #
2009年4月2日 #
摘要:
概述: 以前安装过SQLSERVER2000,现在安装2005,在控制面板的添加删除里把以前的2000删除掉,安装2005的一开始时时候出现如标题的错误. 解决办法: 首先,把安装Microsoft SQL Server文件夹整个删掉; 其次,运行regedit命令,进入注册表,删除如下项: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Mi... 阅读全文
摘要:
转载于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... 阅读全文
2009年4月1日 #
摘要:
概述: 当用Nhibernate操作主从表时,往主表插入数据时,当执行到提交事务时出现如下错误: 此 OracleParameterCollection 的 Count=4 的索引 4 无效。 在 System.Data.OracleClient.OracleParameterCollection.RangeCheck(Int32 index) 在 System.Data.OracleC... 阅读全文
2009年3月26日 #
摘要:
概述: 当我们遇到把对象的属性及值显示在GridView的时候,我们需要把ojbect转化为DataTable来进行绑定. 代码如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/// /// Fills the Data... 阅读全文
2009年3月5日 #
摘要:
概述: 在项目中应用NHibernate架构时,会经常遇到多表查询.因为项目上要用到,通过多天的查询总结了以下两种解决方案. 解决方案: (1)使用HQL语句,然后把查询出的结果存入临时表中,然后再进行绑定. (2)使用select new OaxtJoinGlxt这种语法,根据查询的内容自己构建相应的实体类. 第一种方案实现具体过程: 我的需求如下: 我需要查询JkptOa... 阅读全文
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... 阅读全文
2009年2月26日 #
摘要:
概述: 在Nhibernate对数据记录进行更新的时候,如果对同一条记录进行重复执行修改时,出现如下错误: a different object with the same identifier value was already associated with the session: 25, of entity: Model.JkptOaxtWeatherforecast. 解决办法... 阅读全文
2009年2月24日 #
摘要:
概述: 当使用Nhibernate查询表中的数据时,如果表中存在复合主键,如果没有在相应的实体类中重写Equals(),那么将会出现"Could not compile the mapping document: TestCleanSnow.JkptGlxtUser.hbm.xml".当跟踪出错的内部信息的时候会发现,内部异常为"composite-id class must overrid... 阅读全文
2009年2月19日 #
摘要:
概述: 在用Nhibernate查询所返回的数据为IList,而我们经常需要的却是DataSet,所以很有必要这么一个方法. 代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/**/ /// /... 阅读全文