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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - 风满袖

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

posted @ 2006-06-27 11:44  风满袖  阅读(3082)  评论()    收藏  举报