Nhibernate引入自定義Membership和Role
Custom Membership and Role Providers using NHibernate
該工程已經(jīng)遷入CodePlex
地址 http://www.codeplex.com/nhibernateprovider
NHibernate Plugin for Visual Studio 2005
這個(gè)Nhibernate插件也可以用用。圖形化設(shè)計(jì)生成hbm.xml文件和實(shí)體類
感覺(jué)還不錯(cuò)。如何使用可以看看Getting Started with NHibernate Plug-in for Visual Studio 2005
截2張圖
設(shè)計(jì)界面
屬性值可以設(shè)置

最終 生成的配置文件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 on 2007-05-12 22:53 record java and net 閱讀(2503) 評(píng)論(3) 編輯 收藏