03 2020 档案
摘要:C#综合揭秘 -- 细说事务 事务保存点 SqlConnection conn = new SqlConnection("data source=127.0.0.1;initial catalog=Test;user id=sa;password=123;MultipleActiveResultSe
阅读全文
摘要:在Ibatis DataMapper中,会话就是ADO connetction和transaction的容器。 DataMapper中的IDalSession实现了IDisposable可以使用using语法糖 using ( IDalSession session = sqlMap.OpenCon
阅读全文
摘要:DataMapper API 提供四个核心方法 build a SqlMapper instance from a configuration file execute an update query (including insert and delete). execute a select q
阅读全文
摘要:iBatis DataMapper配置文件 SqlMap.config ,在这里配置数据库,数据映射,其他如缓存,事务,多线程等。在运行时,iBatis一个类会加载,解析SqlMap.config文件,解析之后会返回DataMapper Client(an instance of SqlMapper
阅读全文
摘要:A simple dynamic select sttatement, with two possible outcomes 一个简单的动态查询语句,有两种可能的结果 <select id="dynamicGetAccountList" cacheModel="account-cache" para
阅读全文
摘要:创建一个cacheModel <cacheModels> <cacheModel id="Cache1" implementation="LRU"> <flushInterval hours="24"/> <flushOnExecute statement="GetById"/> <flushOnE
阅读全文
摘要:语法 <resultMap id="resultMapIdentifier" [class="fullyQualifiedClassName, assembly|typeAlias"] [extends="[sqlMapNamespace.]resultMapId"]> <constructor >
阅读全文
摘要:Docs 3.4 Parameter Maps and Inline Parameters 3.5 Result Maps 3.6 Supported Types for Parameter Maps and Result Maps 3.7 Supported database types for
阅读全文
摘要:语法 <parameterMap id="parameterMapIdentifier" [class="fullyQualifiedClassName, assembly|typeAlias"] [extends="[sqlMapNamespace.]parameterMapId"]> <para
阅读全文
摘要:IBATIS.NET Developer Guide 深入浅出Mybatis -- 杨开振 loading... 待整理 批量插入问题 嵌套查询,嵌套结果
阅读全文
摘要:第一部分 基础应用 介绍如何高效使用Mybatis 第一章 Mybatis内容简介,Mybatis是什么,什么场景下使用 第二章 Mybatis基础模块和声明周期 第三章 Mybatis配置的主要含义和内容 第四章 Mybatis映射器的主要元素和使用方法 第五章 介绍动态SQL,应对大部分SQL场
阅读全文
摘要:定义 定义对象间的一种一对多的关系,使得当一个对象状态发生改变时,其相关依赖对象皆得到通知并被自动更新 类图 代码 public abstract class Subject { protected IList<Observer> observers = new List<Observer>();
阅读全文
摘要:在很多情况下,一个对象的行为取决于一个或多个动态变化的属性,这样的属性叫做状态,这样的对象叫做有状态的(stateful)对象,这样的对象状态是从事先定义好的一系列值中取出的。当一个这样的对象与外部事件产生互动时,其内部状态就会改变,从而使得系统的行为也随之发生变化。 状态模式包含三个角色:环境类又
阅读全文
摘要:定义 Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients tha
阅读全文

浙公网安备 33010602011771号