其他分享
首页 > 其他分享> > [导入]Nhibernate引入自定义Membership和Role

[导入]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

标签:xml,www,自定义,Membership,Role,NHibernate,Nhibernate
来源: https://blog.csdn.net/weixin_34348174/article/details/93235680