07 2006 档案

摘要:返回自增列的值 insert into PRODUCT (PRD_ID,PRD_DESCRIPTION) values (#id#,#description#) insert into PRODUCT (PRD_DESCRIPTION) values (#description#) insert into PRODUCT (PRD_DESCRIPTION) val... 阅读全文
posted @ 2006-07-20 11:22 Kangaroo 阅读(1370) 评论(3) 推荐(0)
摘要:Data Map (.NET):Example: Mapped StatementsMapped Statements can hold any SQL statement and can use Paramet... 阅读全文
posted @ 2006-07-20 09:51 Kangaroo 阅读(840) 评论(0) 推荐(0)
摘要: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 阅读(552) 评论(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 阅读(776) 评论(0) 推荐(0)
摘要:用iBATIS.NET读取单条记录,并对这条记录进行修改。修改Maps/Customers.xml文件,在statements标记中添加下面代码: update Customers set CompanyName=#CompanyName#, ContactName=#ContactName#, ContactTitle=#Contact... 阅读全文
posted @ 2006-07-19 21:04 Kangaroo 阅读(629) 评论(0) 推荐(0)
摘要:用iBATIS.NET实现简单的添加记录到数据库(向数据库Northwind中的Cutsomers表添加记录)新建Web页面,Test2.aspx Test2 添加记录到数据库 ... 阅读全文
posted @ 2006-07-19 20:27 Kangaroo 阅读(672) 评论(0) 推荐(0)
摘要:用iBATIS.NET简单查询数据。项目目录结构:新建类Mapper.cs //***********************************************************//*公司://*作者:YK//*模块:IbatisNet.Example//*功能://*创建日期://*修改日期://****************************************... 阅读全文
posted @ 2006-07-19 19:32 Kangaroo 阅读(908) 评论(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 阅读(947) 评论(0) 推荐(0)
摘要:.NET中的数据类型和iBATIS.NET配置文件数据类型的比较: CLR Type Alias System.ArrayList list System.B... 阅读全文
posted @ 2006-07-18 22:12 Kangaroo 阅读(900) 评论(0) 推荐(0)
摘要:在VS.NET2003中使用iBATIS.NET,添加SqlMap.xsd, SqlMapConfig.xsd, providers.xsd三个文件到C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\schemas\xml这样在编辑iBATIS.NET配置文件时,有提醒出现,更易用。如下所示:SqlMap.Con... 阅读全文
posted @ 2006-07-18 22:03 Kangaroo 阅读(1817) 评论(1) 推荐(0)
摘要:IBatisNET是从Java的IBatis开源项目转过来的,IBatisNET可以为你的应用设计一个更好的数据持久层。其大概框架如下图: Table 4.1. Folders found in the iBATIS.NET source distribution Folder name ... 阅读全文
posted @ 2006-07-18 21:38 Kangaroo 阅读(1121) 评论(0) 推荐(1)
摘要:对象关系映射(Object Relational Mapping,简称ORM)是一种为了解决面向对象与关系数据库存在的互不匹配的现象的技术。 简单的说,ORM是通过使用描述对象和数据库之间映射的元数据,将java程序中的对象自动持久化到关系数据库中。本质上就是将数据从一种形式转换到另外一种形式。 这也同时暗示者额外的执行开销;然而,如果ORM作为一种中间件实现,则会有很多机会做优化,而这些在手写... 阅读全文
posted @ 2006-07-18 15:53 Kangaroo 阅读(272) 评论(0) 推荐(0)
摘要:运行结果如下图所示:WebForm1.aspx WebForm1 ... 阅读全文
posted @ 2006-07-14 10:30 Kangaroo 阅读(654) 评论(0) 推荐(0)
摘要:genimage.ashx genimage.ashx.cs // Copyright (C) 2003 by Greg Ennis// (mailto:greg@ennis.net)//// The contents of this file are subject to the Artistic License (the "License").// You may not use this... 阅读全文
posted @ 2006-07-13 17:21 Kangaroo 阅读(1827) 评论(0) 推荐(0)
摘要:WebForm1 >" oncli... 阅读全文
posted @ 2006-07-11 16:33 Kangaroo 阅读(449) 评论(0) 推荐(0)
摘要:Regex 类包含若干静态方法,使您无需显式创建 Regex 对象即可使用正则表达式。使用静态方法等效于构造 Regex 对象,使用该对象一次然后将其销毁。 Regex 类是不可变(只读)的,并且具有固有的线程安全性。可以在任何线程上创建 Regex 对象,并在线程间共享。 方法:Escape:通过替换为转义码来转义最小的元字符集(\、*、+、?、|、{、[、(、)、^、$、.、# 和空白)。Ge... 阅读全文
posted @ 2006-07-11 10:19 Kangaroo 阅读(294) 评论(0) 推荐(0)
摘要:NHibernate http://www.Hibernate.org/ 是当前最流行的Java O/R mapping 框架Hibernate 的移植版本,当前版本是1.0 rc-1 。它出身于sf.net..IbatisNet 是另外一种优秀的Java O/R mapping 框架,当前版本是1.2 。目前属于apache的一个子项目了。 相对NHibernate “O/R ”而言,Ibat... 阅读全文
posted @ 2006-07-10 16:12 Kangaroo 阅读(462) 评论(0) 推荐(0)
摘要:download.aspx download download.cs using System;using System.IO;using System.Web;using System.Web.UI;namespace ZKSTAT.Common{ ... 阅读全文
posted @ 2006-07-06 11:44 Kangaroo 阅读(572) 评论(0) 推荐(0)