zoukankan
html css js c++ java
IBatisnet Facility 的几种配置
1、代码
container
=
new
WindsorContainer(store);
container.AddFacility(
"
ibatis
"
,
new
IBatisNetFacility());
2、配置文件
<
facilities
>
<
facility
id
="ibatis"
>
<
sqlMap
id
="sqlServerSqlMap"
config
="sqlMap.config"
/>
</
facility
>
</
facilities
>
private
static
WindsorContainer container;
protected
void
Application_Start(
object
sender, EventArgs e)
{
container
=
new
WindsorContainer(
new
XmlInterpreter(
new
ConfigResource()));
}
3、内嵌资源
<
facilities
>
<
facility
id
="ibatis"
type
="Castle.Facilities.IBatisNetIntegration.IBatisNetFacility, Castle.Facilities.IBatisNetIntegration"
>
<
sqlMap
id
="sqlServerSqlMap"
config
="FES.Web.SqlMap.config, FES.Web"
embedded
="true"
/>
</
facility
>
</
facilities
>
查看全文
相关阅读:
js获取页面传递过来的值
pdf生成
行内元素和块级元素有哪些
Relative 定位与Absolute 定位实例
rsync全网备份
nginx1.15.8源码安装
网页内容抓取工具、利用多线程
正则表达式获取HTML标记中的内容。(注:如果内容中含有回车符,请查看第三个例子)
SQL用一个表的数据更新另一个表的数据
将Winform编译成DLL供C/S程序引用(Winform引用Winform)
原文地址:https://www.cnblogs.com/pw/p/628832.html
最新文章
OLEDB 连接EXCEL的连接字符串IMEX的问题
转:为SharePoint搜索创建自定义优化参数
开启SharePoint页面的Session功能
JQuery一句话搞定手风琴菜单
Code Review中的几个提示
蘑菇理论
像Google一样开会 收藏
高效的会议管理会议高手整理
蘑菇管理定律
C++内存管理变革
热门文章
使用Microsoft Visual Studio和Rational Purify进行运行时调试(一)
软件项目管理
十个最好的PDF生成库
会议讨论技巧实战录
Windows下PHP和Apache的安装与配置
linux下安装apache与php;Apache+PHP+MySQL配置攻略
MySQL server has gone away问题解决方法
linq to datatable group by 多列 实现 .
右上角显示加载信息
C#操作XML实例解析(创建、增、删、改) .
Copyright © 2011-2022 走看看