[导入]Nhibernate引入自定义Membership和Role

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张图

 设计界面

o_Snap1.jpg

属性值可以设置

o_Snap3.jpg

 

o_Snap2.jpg

最终 生成配置文件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>
117051.html

转载于:https://www.cnblogs.com/wujun/archive/2007/05/12/757567.html

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念