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

推荐订阅源

D
Docker
爱范儿
爱范儿
人人都是产品经理
人人都是产品经理
博客园 - 司徒正美
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
量子位
罗磊的独立博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
小众软件
小众软件
C
Cybersecurity and Infrastructure Security Agency CISA
Cyberwarzone
Cyberwarzone
大猫的无限游戏
大猫的无限游戏
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
Simon Willison's Weblog
Simon Willison's Weblog
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cyber Attacks, Cyber Crime and Cyber Security
博客园_首页
博客园 - 叶小钗
V
Vulnerabilities – Threatpost
T
The Exploit Database - CXSecurity.com
T
Tailwind CSS Blog
IT之家
IT之家
博客园 - 聂微东
Spread Privacy
Spread Privacy
V2EX - 技术
V2EX - 技术
S
Security Affairs
宝玉的分享
宝玉的分享
V
V2EX
C
Cisco Blogs
博客园 - Franky
美团技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
月光博客
月光博客
S
Securelist
J
Java Code Geeks
Webroot Blog
Webroot Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
L
LINUX DO - 热门话题
NISL@THU
NISL@THU
WordPress大学
WordPress大学
W
WeLiveSecurity
T
Threatpost
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志

博客园 - 风满袖

如何进行有效的沟通(二) 如何进行有效的沟通(一) SOA——概念 (转)Locale 详解 A XMLBean Tip 在Weblogic8.1.4服务器上安装Alphablox8.4 BI相关的术语 开源BI系统简述 如何收集项目需求 Prefactoring——Guidelines Prefactoring——Introduction Create C++ Object Dynamically MVP——Model-Viewer-Presenter Success/Failure Criteria for Software Projects AJAX Secutiry and AJAX Applications Accessible -- Many Tutorials and Articles Apache——Config WebDAV 3D Desktop Some Funny Development Methodologies -- XXX Driven Development Why I hate Web 2.0/AJAX? Here are some reasons...
A NHibernate Helper Kit
风满袖 · 2006-06-27 · via 博客园 - 风满袖

以前使用NH开发的时候,曾经使用过飞鹰的CoolCoder,可以根据DB生成Entity Class(C#或VB.Net)和相应的XML Config File,虽然工具看起来功能比较单一,但足够使用了,只是有一些小的bug。
现在有一个类似的工具可以使用了,在CodeProject上发现的一个NHibernate Helper Kit,功能基本和飞鹰的CoolCoder的类似:
1、连接DB。
2、选择表和表中的字段。
3、做Assembly和Namespace的设置,设置Project文件路径的设置,拷贝必要的DLL(NH,log4net等)。
图片:

 我的评价:
1、具备了基本的从DB生成实体类和实体类配置文件的功能。
2、只支持C#,不能处理Relation——NH最新的版本增强了对Relation的支持,Helper Kit也应该与时俱进。
3、不支持定义和DB中Column不同名称的Property名,而只能生成和Column名相同的Property名。
4、此款Kit不如可定义模板的工具灵活和强大,但是也可以为我们省去不少事情,比较实用。

CoolCoder和该Helper Kit都是一个好的开始,如果继续深入下去的话(可惜飞鹰没有继续开发CoolCoder),添加更多的功能——比如对Relation的支持,在添加一些比较铁心的小功能——比如注释(因为很多公司都要求代码文件要添加文件头注释的),那就更加方便开发了。

ps:
还有其它NH相关的工具,比如2005年出现的
Nhibernate Query Analyzer