上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: 摘要:最近几天有时间看了一下Castle,原来它的功能是如此的强大,从数据访问框架到IOC容器,再到WEB框架,基本包括了整个开发过程中的所有东西,看来得好好学习研究一下了,并且打算把自己学习过程的一些东西记录下来。先从ActiveRecord开始吧,ActiveRecord提供的简洁的O/R映射给我留下了很深的印象,本文将通过一个简单对象的CRUD操作来带你快速走进Castle ActiveRe... 阅读全文
posted @ 2010-03-07 22:48 Madream.F 阅读(286) 评论(0) 推荐(1) 编辑
摘要: Castle的解释Castle 英文意思为城堡常见框架Castle和Spring.Net是.net开源框架中最热也是最优秀的两个IOC框架,NHibernate实现ORM,Castle也是使用Nhiberante来做的ORM常见的组合Spring.Net +Nhibernate或者Castle简略介绍Castle框架分为一下几个组件ActiveRecord - 1.0.3 (RC3) 基于Nhib... 阅读全文
posted @ 2010-03-07 22:11 Madream.F 阅读(629) 评论(1) 推荐(1) 编辑
摘要: 我们总结一下在第二篇中的Session操作: 1. 获取记录Personperson=(Person)session.Get(typeof(Person),1);2. 保存记录session.Save(person);3. 删除记录Personperson=(Person)session.Get(typeof(Person),1);session.Delet(person);我们再来看看其它几种方... 阅读全文
posted @ 2010-03-07 21:17 Madream.F 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 好了,我们再从头看一看Configuration,是否只能从App.config中取配置信息??当然不是了,以下是3种最常见的配置:<1> Configuration config = new Configuration();这种配置方法将会到应用程序配置文件(App.Config,Web.Config)中查找NHibernate的配置信息,NHibernate的配置节必须符合应用程序... 阅读全文
posted @ 2010-03-07 21:13 Madream.F 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 接着第一期,我们继续。为了方便学习测试,从今天开始我将使用MS Test来进行测试,这样就避免了在一个Console工程里不停地添加、注释代码了。提示:为了在VS2005IDE中获得NHibernate配置文件的代码提示,请将你的$NHibernate\src\NHibernate下的nhibernate-configuration-2.0.xsd、nhibernate-mapping-2.0.x... 阅读全文
posted @ 2010-03-07 21:02 Madream.F 阅读(143) 评论(0) 推荐(0) 编辑
摘要: NHibernate Step by Step (一) Hello,NHibernate!好了,今天我们正式开始NHibernate的历程,在第一次的练习中,我将尽量详细地讲解环境的配置,以后将不再详细解释。基本的软件环境如下:1.NHibernatehttp://www.nhibernate.org/当前版本是1.0.22.Code Smithhttp://www.codesmithtools.... 阅读全文
posted @ 2010-03-07 20:48 Madream.F 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 很久以前,你可能习惯了connection.open,command.execute("select...")这样的代码,写啊写啊,你开始不停地copy/paste,因为数据库的操作太雷同了,还好,粘粘贴贴倒也凑合,然后有一天客户说他们要用oracle,于是你开始抱着本oracle开发指南狂啃pl/sql,你开始试验调用oracle的存储过程该怎么写,参数是用@还是?或者是:,取个blob游标又要... 阅读全文
posted @ 2010-03-07 20:47 Madream.F 阅读(107) 评论(0) 推荐(0) 编辑
摘要: C# Interview Questions and AnswersWhat’s the implicit name of the parameter that gets passed into the class’ set method? Value, and its datatype depends on whatever variable we’re ch... 阅读全文
posted @ 2010-02-28 21:39 Madream.F 阅读(1142) 评论(0) 推荐(1) 编辑
摘要: 38 Interview Questions and Answers of ASP.NET1. Describe the role of inetinfo.exe, aspnet_isapi.dll and aspnet_wp.exe in the page loading process. inetinfo.exe is theMicrosoft IIS server running, hand... 阅读全文
posted @ 2010-02-28 21:35 Madream.F 阅读(719) 评论(0) 推荐(0) 编辑
摘要: ASP.NET Interview Questions and answersThis is a list of questions I have gathered and created over a period of time from my experience, many of whichI felt where incomplete or simply wrong. I have fi... 阅读全文
posted @ 2010-02-28 21:34 Madream.F 阅读(569) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页