<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_一个程序员的自省_分类_28-iBATIS</title><id>http://feed.cnblogs.com/blog/u/15645/category/68105/rss</id><updated>2012-05-29T01:17:13Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/category/68105.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/15645/category/68105/rss"/><entry><id>http://www.cnblogs.com/anderslly/archive/2007/12/27/ibatisinactionch062.html</id><title type="text">iBATIS In Action：使用高级查询技术（一）</title><summary type="text">本文翻译自《iBATIS in Action》第6章的1、2两节。iBATIS.NET框架的一大特性就是简单。但其中也有些内容比较复杂，比如加载复杂的集合属性。在使用iBATIS处理单表的操作时非常简单、直接，但在处理复杂的多表关系时就不是如此了。如何在加载一个用户的信息时加载他的订单信息？在日常的应用程序开发中，这种经典的主从关系扮演着非常重要的角色。本文将对这个棘手的问题进行讨论。</summary><published>2007-12-27T12:40:00Z</published><updated>2007-12-27T12:40:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/12/27/ibatisinactionch062.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/12/27/ibatisinactionch062.html"/><content type="text">本文翻译自《iBATIS in Action》第6章的1、2两节。iBATIS.NET框架的一大特性就是简单。但其中也有些内容比较复杂，比如加载复杂的集合属性。在使用iBATIS处理单表的操作时非常简单、直接，但在处理复杂的多表关系时就不是如此了。如何在加载一个用户的信息时加载他的订单信息？在日常的应用程序开发中，这种经典的主从关系扮演着非常重要的角色。本文将对这个棘手的问题进行讨论。</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/12/11/executingnonquerystatement02.html</id><title type="text">iBATIS In Action：执行非查询语句（二）</title><summary type="text">本文翻译自《iBATIS in Action》第5章的后3节。首先是如何更新和删除数据，简单地讨论了并发和子项记录的处理；接着详细讨论了存储过程的使用，即使您是一个面向对象的信徒，也不要盲目排斥存储过程，作者就试着纠正一些错误的观点，然后讲解了存储过程不同类型参数的用法。</summary><published>2007-12-11T07:45:00Z</published><updated>2007-12-11T07:45:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/12/11/executingnonquerystatement02.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/12/11/executingnonquerystatement02.html"/><content type="text">本文翻译自《iBATIS in Action》第5章的后3节。首先是如何更新和删除数据，简单地讨论了并发和子项记录的处理；接着详细讨论了存储过程的使用，即使您是一个面向对象的信徒，也不要盲目排斥存储过程，作者就试着纠正一些错误的观点，然后讲解了存储过程不同类型参数的用法。</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/11/12/ibatisandtimer.html</id><title type="text">离奇的问题:当iBATIS遇到Timer</title><summary type="text">为了在程序中实现定时任务,我在Global.asax里面加了一个System.Threading.Timer类的实例,然后在 Application_Start()中将其初始化,开始还没问题,前两天遇到了一个奇怪的异常: WebSessionStore: Could not obtain reference to HttpContext.</summary><published>2007-11-12T03:17:00Z</published><updated>2007-11-12T03:17:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/11/12/ibatisandtimer.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/11/12/ibatisandtimer.html"/><content type="text">为了在程序中实现定时任务,我在Global.asax里面加了一个System.Threading.Timer类的实例,然后在 Application_Start()中将其初始化,开始还没问题,前两天遇到了一个奇怪的异常: WebSessionStore: Could not obtain reference to HttpContext.</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/11/05/executingnonquerystatement01.html</id><title type="text">iBATIS In Action：执行非查询语句（一）</title><summary type="text">本文翻译自《iBATIS in Action》第5章的1、2节。对数据库执行查询无疑很重要，但多数程序同时也需要将数据写入数据库。本文首先讨论了用于更新数据库的API，然后是插入数据的相关内容：内联参数和外部参数的选择、获取自动生成主键的值。</summary><published>2007-11-05T10:52:00Z</published><updated>2007-11-05T10:52:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/11/05/executingnonquerystatement01.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/11/05/executingnonquerystatement01.html"/><content type="text">本文翻译自《iBATIS in Action》第5章的1、2节。对数据库执行查询无疑很重要，但多数程序同时也需要将数据写入数据库。本文首先讨论了用于更新数据库的API，然后是插入数据的相关内容：内联参数和外部参数的选择、获取自动生成主键的值。</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/11/04/ibatisusingmappedstatement02.html</id><title type="text">iBATIS In Action：使用映射语句（二）</title><summary type="text">本文翻译自《iBATIS in Action》第4章的后半部分。Parameter Map和Result Map属于Data Map文件的重要内容，本文对其进行了详细的讨论。</summary><published>2007-11-04T06:58:00Z</published><updated>2007-11-04T06:58:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/11/04/ibatisusingmappedstatement02.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/11/04/ibatisusingmappedstatement02.html"/><content type="text">本文翻译自《iBATIS in Action》第4章的后半部分。Parameter Map和Result Map属于Data Map文件的重要内容，本文对其进行了详细的讨论。</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/11/02/ibatisnullimage.html</id><title type="text">iBATIS.NET Tips &amp;amp; Tricks(2) : 将image列设置为null值时遇到的Operand type clash异常。</title><summary type="text">如何将image列设置为null值?</summary><published>2007-11-02T06:48:00Z</published><updated>2007-11-02T06:48:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/11/02/ibatisnullimage.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/11/02/ibatisnullimage.html"/><content type="text">如何将image列设置为null值?</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/10/16/ibatisusingmappedstatement.html</id><title type="text">iBATIS In Action：使用映射语句（一）</title><summary type="text">本文翻译自《iBATIS In Action》的第4章的1、2两节。iBATIS实战，感觉从这一章才算开始实战。首先是iBATIS的入门基础，包括基本的API介绍，映射语句的类型等；随后比较详细地讨论了select类型语句的用法。</summary><published>2007-10-16T11:37:00Z</published><updated>2007-10-16T11:37:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/10/16/ibatisusingmappedstatement.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/10/16/ibatisusingmappedstatement.html"/><content type="text">本文翻译自《iBATIS In Action》的第4章的1、2两节。iBATIS实战，感觉从这一章才算开始实战。首先是iBATIS的入门基础，包括基本的API介绍，映射语句的类型等；随后比较详细地讨论了select类型语句的用法。</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/09/29/ibatisinactionch03.html</id><title type="text">iBATIS In Action：iBATIS的安装和配置</title><summary type="text">本文的主题是iBATIS的安装和配置，内容如下：3.1 获取iBATIS发行包；3.2 发行包的内容；3.3 依赖项；3.4 将iBATIS添加到应用程序3.5 iBATIS和ADO.NET；3.6 iBATIS的配置（SqlMap.config）；3.7 小结iBATIS的配置这一部分基本上是基于iBATIS官方的DataMapper Guide文档。</summary><published>2007-09-29T03:51:00Z</published><updated>2007-09-29T03:51:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/09/29/ibatisinactionch03.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/09/29/ibatisinactionch03.html"/><content type="text">本文的主题是iBATIS的安装和配置，内容如下：3.1 获取iBATIS发行包；3.2 发行包的内容；3.3 依赖项；3.4 将iBATIS添加到应用程序3.5 iBATIS和ADO.NET；3.6 iBATIS的配置（SqlMap.config）；3.7 小结iBATIS的配置这一部分基本上是基于iBATIS官方的DataMapper Guide文档。</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/09/07/ibatisinactionpreface.html</id><title type="text">iBATIS In Action：序言和目录</title><summary type="text">iBATIS In Action翻译系列第一篇1.iBATIS In Action 序言2.阅读此书需要的前提知识3.本人的一点感想和提示4.已完成部分的索引</summary><published>2007-09-06T16:40:00Z</published><updated>2007-09-06T16:40:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/09/07/ibatisinactionpreface.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/09/07/ibatisinactionpreface.html"/><content type="text">iBATIS In Action翻译系列第一篇1.iBATIS In Action 序言2.阅读此书需要的前提知识3.本人的一点感想和提示4.已完成部分的索引</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/09/02/ibatisinactionch022.html</id><title type="text">iBATIS In Action：什么是iBATIS（二）</title><summary type="text">本文翻译了《iBATIS In Action》一书第二章的后半部分。内容如下：2.5 iBATIS快速上手2.6 未来：iBATIS将去向何处2.7 总结</summary><published>2007-09-02T10:56:00Z</published><updated>2007-09-02T10:56:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/09/02/ibatisinactionch022.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/09/02/ibatisinactionch022.html"/><content type="text">本文翻译了《iBATIS In Action》一书第二章的后半部分。内容如下：2.5 iBATIS快速上手2.6 未来：iBATIS将去向何处2.7 总结</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/08/19/ibatisinactionch021.html</id><title type="text">iBATIS In Action：什么是iBATIS（一）</title><summary type="text">这一篇是iBATIS In Action一书第二章的前半部分，给iBATIS说了一大堆的好话。主要内容如下：2.1 SQL 映射；2.2 工作原理；2.3 为什么要使用iBATIS；2.4 何时不用iBATIS</summary><published>2007-08-19T12:39:00Z</published><updated>2007-08-19T12:39:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/08/19/ibatisinactionch021.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/08/19/ibatisinactionch021.html"/><content type="text">这一篇是iBATIS In Action一书第二章的前半部分，给iBATIS说了一大堆的好话。主要内容如下：2.1 SQL 映射；2.2 工作原理；2.3 为什么要使用iBATIS；2.4 何时不用iBATIS</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/08/07/npetshopsourcecode.html</id><title type="text">NPetshop Source for .NET 2.0</title><summary type="text">最近决定把《iBATIS in Action》翻译一下，算作给自己的一个不小的挑战。所以把NPetshop重新拿出来整理了一下，它原先的版本实在够老了，把它升级到了DataAccess1.8.1和DataMapper1.5.1，然后放到了.NET2.0下。这样在翻译该书的时候可以使用NPetshop的代码作为示例。</summary><published>2007-08-06T16:31:00Z</published><updated>2007-08-06T16:31:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/08/07/npetshopsourcecode.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/08/07/npetshopsourcecode.html"/><content type="text">最近决定把《iBATIS in Action》翻译一下，算作给自己的一个不小的挑战。所以把NPetshop重新拿出来整理了一下，它原先的版本实在够老了，把它升级到了DataAccess1.8.1和DataMapper1.5.1，然后放到了.NET2.0下。这样在翻译该书的时候可以使用NPetshop的代码作为示例。</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/07/21/lazyloaddoesnotwork.html</id><title type="text">iBATIS的1.9.1版本的DataAccess实现lazyLoad有问题?</title><summary type="text">原来一直单独使用DataMapper,最近将DataAccess和DataMapper结合使用,并升级到最新版本(1.9.1和1.6.1), lazyLoad竟不能正常使用.我比较了一下两个程序,发现主要的差别在于DataAccess的使用以及版本的不同,于是将DataAccess和DataMapper的版本分别改为1.8.1和1.5.1(即上一个版本),lazyLoad再无问题,这个让人搞不懂.</summary><published>2007-07-21T14:19:00Z</published><updated>2007-07-21T14:19:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/07/21/lazyloaddoesnotwork.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/07/21/lazyloaddoesnotwork.html"/><content type="text">原来一直单独使用DataMapper,最近将DataAccess和DataMapper结合使用,并升级到最新版本(1.9.1和1.6.1), lazyLoad竟不能正常使用.我比较了一下两个程序,发现主要的差别在于DataAccess的使用以及版本的不同,于是将DataAccess和DataMapper的版本分别改为1.8.1和1.5.1(即上一个版本),lazyLoad再无问题,这个让人搞不懂.</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/06/28/ibatisNullableType.html</id><title type="text">iBATIS.NET Tips &amp; Tricks(1) : 使用Nullable类型</title><summary type="text">使用Nullable类型来避免外键冲突和日期范围等问题。</summary><published>2007-06-28T12:27:00Z</published><updated>2007-06-28T12:27:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/06/28/ibatisNullableType.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/06/28/ibatisNullableType.html"/><content type="text">使用Nullable类型来避免外键冲突和日期范围等问题。</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/06/21/ibatisodspaging.html</id><title type="text">使用iBatis和ObjectDataSource轻松实现分页</title><summary type="text">利用iBatis的方法配合ObjectDataSource控件可以很容易地实现比较通用的分页方案.</summary><published>2007-06-21T11:13:00Z</published><updated>2007-06-21T11:13:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/06/21/ibatisodspaging.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/06/21/ibatisodspaging.html"/><content type="text">利用iBatis的方法配合ObjectDataSource控件可以很容易地实现比较通用的分页方案.</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2007/05/30/queryfordatasetinibatis.html</id><title type="text">关于在IBatis中返回DataSet</title><summary type="text">在一个邮件列表的讨论中,了解了如何在IBatis.Net中返回DataSet以及一些相关的观点。</summary><published>2007-05-30T01:55:00Z</published><updated>2007-05-30T01:55:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2007/05/30/queryfordatasetinibatis.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2007/05/30/queryfordatasetinibatis.html"/><content type="text">在一个邮件列表的讨论中,了解了如何在IBatis.Net中返回DataSet以及一些相关的观点。</content></entry><entry><id>http://www.cnblogs.com/anderslly/archive/2006/08/25/IBatisNetTemplates.html</id><title type="text">关于IBatisNet的两个简单CodeSmith模板</title><summary type="text"/><published>2006-08-25T04:47:00Z</published><updated>2006-08-25T04:47:00Z</updated><author><name>Anders Cui</name><uri>http://www.cnblogs.com/anderslly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/anderslly/archive/2006/08/25/IBatisNetTemplates.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/anderslly/archive/2006/08/25/IBatisNetTemplates.html"/><content type="text"/></entry></feed>
