原创 [Castle]Asp.Net中獲取Castle容器中的服務的另一方法

我們知道在我們使用Castle IOC的時候,若你的類庫在容器中的時候,你只需要通過公開屬性或構造時設置參數後,Castle容器就會自動的根據配置文件中的服務爲您實例化相應的類。但他並不支持Asp.Net的

原创 Django多表查詢

tables = """ commend_intonetworkdata d,commend_intonetwork n """ wheresql = """ commend_intonetworkdata.ismatched=fal

原创 [django]the story about Django and TurboGears

I was walking across a bridge one day, and I saw a man standing on the edge, about to jump off. So I ran over and said,

原创 Grails如何使用外部配置文件

Grails的Config發佈後是編譯的,無法手動修改,所以可以通過外部配置文件的方式修改一些設置,如數據庫的鏈接等。   在Config.groovy增加   grails.config.locations = [ "classpath

原创 使用7zip-rar代替rar解決中文文件亂碼

今天我把rar卸載掉,使用7zip-rar代替,這樣直接解壓識別中文名了。

原创 [AJAX]Ajax.Net取Application的值問題

如下: [AjaxPro.AjaxMethod]        public int GetOnlineUserCount()        {            return ((Hashtable)

原创 [Castle]Castle.Model被Castle.Core代替了

我今天下載了11.1日發佈的rc2的版本,發現找不到Castle.Model,後來發現多了個Castle.Core,發現可以用他來代替Castle.Model.搜索了一下,果然看到官方文檔中有:- The

原创 Since NHibernate 1.2.0, objects are lazy by default

如果你還是使用以前的mapping的時候就會有可能會出現Type '*******' cannot be specified as proxy: method get_Id should be virtual這個時候你需要修改***.hb

原创 [Castle]Castle也範型

配置文件如下: <!-- Core data access services -->        <component             id="commondao"             ser