惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
MyScale Blog
MyScale Blog
博客园 - Franky
The Cloudflare Blog
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
The Blog of Author Tim Ferriss
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed
Martin Fowler
Martin Fowler
aimingoo的专栏
aimingoo的专栏
J
Java Code Geeks
腾讯CDC
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
G
Google Developers Blog
博客园 - 【当耐特】
美团技术团队
云风的 BLOG
云风的 BLOG

博客园 - hello csharp

推荐个不错的屏幕捕获程序 测试Google Docs 发布的文章.。。 Guidelines – a hidden feature for the Visual Studio Editor Gridview, ObjectDataSource Making life easy Applied MS Reporting Services 101 using Smart Client Database Provider-based ASP.NET Membership Provider HTMLEditor Provider - How to write a custom provider for ASP.NET 2.0 Firebug-javascript/css/ajax/dom调试器【这款不错】 Automatic Sql Server Backup Utility Using sqlserveragent LiveWriter测试 发布个小软件给大伙玩玩 [js小技巧]鼠标移到图片高亮度显示 dot net html分析类库 系统发邮件测试 Dumbster 【小技巧】如何得到一个网页的所有a标记 herf 链接代码 读新浪博客示例[源代码下载] Intellisense for the NHibernate XML Schemas Develop Reports Using Crystal Reports in .NET 2005 [小技巧]winfrom使用多线程
[导入]Nhibernate引入自定义Membership和Role
hello csharp · 2007-05-12 · via 博客园 - hello csharp

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>