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

推荐订阅源

C
Cisco Blogs
Schneier on Security
Schneier on Security
T
Tor Project blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tenable Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
Security Latest
Security Latest
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
NISL@THU
NISL@THU
L
Lohrmann on Cybersecurity
Scott Helme
Scott Helme
Webroot Blog
Webroot Blog
Project Zero
Project Zero
Google Online Security Blog
Google Online Security Blog
The Last Watchdog
The Last Watchdog
Spread Privacy
Spread Privacy
Hacker News: Ask HN
Hacker News: Ask HN
PCI Perspectives
PCI Perspectives
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
W
WeLiveSecurity
Attack and Defense Labs
Attack and Defense Labs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
N
News | PayPal Newsroom
Help Net Security
Help Net Security
The Hacker News
The Hacker News
H
Heimdal Security Blog
O
OpenAI News
S
Security @ Cisco Blogs
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
Simon Willison's Weblog
Simon Willison's Weblog
G
GRAHAM CLULEY
www.infosecurity-magazine.com
www.infosecurity-magazine.com
博客园 - 叶小钗
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
Tailwind CSS Blog
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
I
Intezer
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
Security Affairs
P
Proofpoint News Feed
S
Secure Thoughts
腾讯CDC
Google DeepMind News
Google DeepMind News
量子位
罗磊的独立博客

博客园 - 风满袖

如何进行有效的沟通(二) 如何进行有效的沟通(一) 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