最近有人問我怎麼擷取預存程序的output的參數值,由於我最近沒有用Ibatis.net,所以就從文檔中找到的param的xml,也就沒有在意,但後來有人說調不通,今天早上又收到一份留言,所以我早上作了測試!也出現擷取不到資料的問題,但最後還是解決了!我的測試環境是sqlserver2005/vs2005/ibatis.net2.0如下:procedure:create proc sp_output( @testParam int output)asbegin set @
Get it from: http://space.itpub.net/111631/viewspace-610344 volatile關鍵字有什麼用? 恐怕比較一下volatile和synchronized的不同是最容易解釋清楚的。volatile是變數修飾符,而synchronized則作用於一段代碼或方法;看如下三句get代碼:int i1; int geti1() {return i1;}volatile int i2;
IOC模式的目標:將組件的配置與使用分離,並且是由架構完成的.依賴注入的形式主要有三種,我分別將它們叫做構造子注入(Constructor Injection)、設值方法注入(Setter Injection)和介面注入(Interface Injection)。依賴倒置原則[Martin 1996]: A. 上層模組不應該依賴於下層模組,它們共同依賴於一個抽象。 B.
There was a time when testing software was synonymous with manual testing. Now with the rise of test development and the advent of unit testing, automation is becoming more and more prevalent. Test automation has many benefits but it is
最近看了一些IOC模式的介紹以及關於Castle的文章,從網上下下來關於Introducing Castle PartI的例子,不過在啟動並執行時候出現錯誤,老是提示"Could not resolve non-optional dependency for smtpemailsender. Parameter 'host' type String"。最後決定自己做個簡單的例子來體驗一下,要做就作最簡單的,只有一個組件。所需要的Castle的庫是Castle.Windor.dll,Castle.
It was a nightware for my first trip to BeiJing.In 2004 Agust I frist came BeiJing on business.At the time my company wanted to develop a financial software for architecture and employed a reputable expert as technical adviser. It was for
我今天下載了11.1日發布的rc2的版本,發現找不到Castle.Model,後來發現多了個Castle.Core,發現可以用他來代替Castle.Model.搜尋了一下,果然看到官方文檔中有:- The assembly Castle.Model was replaced by Castle.Core - Internal interfaces have changed to allocate ISubDependencyResolver chain and CreationContext.