摘要: Supported Types for Parameter Maps and Result Maps (.NET) CLR Type Object/Map Property Mapping Result Class/Parameter Class*... 阅读全文
posted @ 2006-07-19 21:25 Kangaroo 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 在iBATIS.NET 学习笔记(五)中的DataGrid中加入删除功能,删除客户信息。修改Maps/Customers.xml,在statements标记中加入下面代码: delete from Customers where CustomerID=#value# parameterClass是指传递进来的参数类型,这里的CustomerID 是varchar类型... 阅读全文
posted @ 2006-07-19 21:22 Kangaroo 阅读(772) 评论(0) 推荐(0) 编辑
摘要: 用iBATIS.NET读取单条记录,并对这条记录进行修改。修改Maps/Customers.xml文件,在statements标记中添加下面代码: update Customers set CompanyName=#CompanyName#, ContactName=#ContactName#, ContactTitle=#Contact... 阅读全文
posted @ 2006-07-19 21:04 Kangaroo 阅读(620) 评论(0) 推荐(0) 编辑
摘要: 用iBATIS.NET实现简单的添加记录到数据库(向数据库Northwind中的Cutsomers表添加记录)新建Web页面,Test2.aspx Test2 添加记录到数据库 ... 阅读全文
posted @ 2006-07-19 20:27 Kangaroo 阅读(667) 评论(0) 推荐(0) 编辑
摘要: 用iBATIS.NET简单查询数据。项目目录结构:新建类Mapper.cs //***********************************************************//*公司://*作者:YK//*模块:IbatisNet.Example//*功能://*创建日期://*修改日期://****************************************... 阅读全文
posted @ 2006-07-19 19:32 Kangaroo 阅读(898) 评论(0) 推荐(0) 编辑
摘要: 今天开始尝试着用iBATIS.NET写程序,创建WEB项目IbatisNET.Example,添加引用IBatisNet.DataMapper.dll,IBatisNet.DataAccess.dll,IBatisNet.Common.dll。实体类Customers.cs //***********************************************************/... 阅读全文
posted @ 2006-07-19 19:24 Kangaroo 阅读(937) 评论(0) 推荐(0) 编辑