blogjava's web log

          blogjava's web log
          ...

          1. Membership/role/profile API: http://quickstarts.asp.net/QuickStartv20/aspnet/doc/security/membership.aspx
          2. SiteMap:
          3. Masterpages::
          4. ASP.NET Ajax:
          5. Localization:
          6. Themes:
          posted @ 2007-06-15 22:26 record java and net 閱讀(400) | 評論 (0)編輯 收藏

          				
          						
          "Failed to lazily initialize a collection"
          				try
          {
          session = Class1.GetFactory().OpenSession();
          Archives archives= session.Get(typeof(Archives), id) as Archives;
          NHibernate.NHibernateUtil.Initialize(archives.ArticlesList);return archives;
          }
          catch (Exception ex)
          {
          throw ex;
          }
          finally { session.Close(); }
          ?或者
          session.CreateCriteria(typeof(Catalog))
          .Add(Expression.Eq("ID"),id)
          .SetFetchMode("Specifications",FetchMode.Join)
          .UniqueResult() as Catalog;


          或者

          left JOIN FETCH

          這樣在session關閉 照樣取他的 級聯對象 ,
          posted @ 2007-06-15 22:23 record java and net 閱讀(1516) | 評論 (0)編輯 收藏

          ActiveWriter is a visual designer, an addin for Visual Studio 2005, to design a domain model and to generate code decorated with ActiveRecord attributes.
          If you are familiar with ActiveRecord, this tool will make your ActiveRecord experience a little easier. If you are not, be sure to check ActiveRecord's web site given above first, there are tons of information to begin with and a great forum if you need some help.
          Please see using.castleproject.org for the documentation.

          ?

          SVN repository at? https://svn.castleproject.org/svn/castlecontrib/activewriter/

          Preview 3 Release - 14/06/2007

          What's new:

          • Now optionally generates NHibernate hbm.xml files.
          • Namespace in generated code is now customizable (Idea: Robert van Hoornaar)
          • Imports in generated code is now customizable (Idea: Robert van Hoornaar)
          • Model classes can override model level base class definition. (Patch: Robert van Hoornaar)
          • Model classes can override model level generics generation. (Idea: Robert van Hoornaar)
          • Contrib-26: Add support for AR Nested / NH Component mappings. Allow the ability to specify a column prefix for active record. (thx: Adam Tybor)
          • Optionally generates classes implementing INotifyPropertyChanged.
          • Support for drag-drop from Server Explorer for MySQL databases. Requires MySQL Connector/Net (5.1). (Patch: Michael Morton)
          • Support for custom types through IUserType. See http://support.castleproject.org/browse/CONTRIB-28#action_11456 for usage. (Patch: Ricardo Stuven)
          • Ability to define a nested class with a different property name than the nested class (Idea: Craig Neuwirt)

          ?

          詳情:
          http://altinoren.com/PermaLink,guid,7043a882-8325-4e48-b956-54868219297c.aspx

          posted @ 2007-06-15 22:21 record java and net 閱讀(611) | 評論 (0)編輯 收藏

          http://www.lingoes.cn/

          靈格斯詞霸 -- 免費的詞典與文本翻譯軟件

          http://maxpda.com/

          posted @ 2007-05-27 10:49 record java and net 閱讀(350) | 評論 (0)編輯 收藏

          Custom Membership and Role Providers using NHibernate

          該工程已經遷入CodePlex

          地址 http://www.codeplex.com/nhibernateprovider

           

          NHibernate Plugin for Visual Studio 2005

          這個Nhibernate插件也可以用用。圖形化設計生成hbm.xml文件和實體類

          感覺還不錯。如何使用可以看看Getting Started with NHibernate Plug-in for Visual Studio 2005

          截2張圖

           設計界面

          屬性值可以設置

           

          最終 生成的配置文件Archives.hbm.xml

          <hibernate-mapping default-cascade="none" xmlns="urn:nhibernate-mapping-2.2">
            <class name="WindowsApplication1.Archives, WindowsApplication1" table="Archives">
              <id name="id" type="System.Int32" column="id" unsaved-value="0">
                <generator class="native" />
              </id>
              <property name="Name" type="System.String" column="name" not-null="false" length="50" />
              <property name="CreateDate" type="System.DateTime" column="createDate" not-null="false" />
            </class>
          </hibernate-mapping>
          posted @ 2007-05-12 22:53 record java and net 閱讀(2502) | 評論 (3)編輯 收藏
          僅列出標題
          共31頁: 上一頁 1 2 3 4 5 6 7 8 9 下一頁 Last 

          導航

          常用鏈接

          留言簿(44)

          新聞檔案

          2.動態語言

          3.工具箱

          9.文檔教程

          友情鏈接

          搜索

          最新評論

          主站蜘蛛池模板: 会昌县| 洞口县| 沈丘县| 三河市| 合肥市| 曲周县| 镇远县| 宁津县| 深泽县| 衡南县| 肃南| 汉源县| 突泉县| 定安县| 吉木萨尔县| 云林县| 南汇区| 尖扎县| 中超| 布尔津县| 长岭县| 南靖县| 清流县| 河南省| 太和县| 准格尔旗| 固阳县| 昂仁县| 宣汉县| 建瓯市| 板桥市| 崇阳县| 和龙市| 乌兰县| 衢州市| 梓潼县| 张家口市| 达日县| 循化| 盖州市| 射阳县|