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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Spread Privacy
Spread Privacy
H
Hacker News: Front Page
PCI Perspectives
PCI Perspectives
Webroot Blog
Webroot Blog
罗磊的独立博客
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Google Online Security Blog
Google Online Security Blog
Last Week in AI
Last Week in AI
美团技术团队
Help Net Security
Help Net Security
The Hacker News
The Hacker News
C
Cisco Blogs
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
The Register - Security
The Register - Security
IT之家
IT之家
WordPress大学
WordPress大学
Jina AI
Jina AI
Recent Commits to openclaw:main
Recent Commits to openclaw:main
H
Help Net Security
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threat Research - Cisco Blogs
P
Proofpoint News Feed
NISL@THU
NISL@THU
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
Scott Helme
Scott Helme
V
Vulnerabilities – Threatpost
B
Blog
T
Tenable Blog
博客园 - 三生石上(FineUI控件)
T
The Exploit Database - CXSecurity.com
S
Security Affairs
小众软件
小众软件
Hacker News: Ask HN
Hacker News: Ask HN
Security Latest
Security Latest
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
W
WeLiveSecurity
A
Arctic Wolf
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence

博客园 - Slash

世界上最经典的25句话[转载] Just do it 送炭之恩 历程 VMware使用相关 (转)绝不能错过 100个最佳Linux站点推荐 (转)7290常用快捷键 (转载)30岁前男人需要完成的事 (转载)表示业务实体的几种方式比较分析 PowerDesigner实现异构数据库转化 发布PowerDesigner11.0中文教程 人生的忠告 DotNet项目中常见文件类型 PowerDesigner中依赖关系自动创建主键 PowerDesigner中定制数据字典 PDM生成的SQL脚本不能正确执行解决过程 DotTextWeb数据库安装过程 DotTexWeb项目不能正常加载打开 应该通过了数工
CodeSmith:类型化DataSet实体类模板
Slash · 2006-10-02 · via 博客园 - Slash

文件导航:
模板文件:CommonUtility.cst
代码文件:CommonUtility.cs
生成示例代码文件:UserData.cs,该示例中TableSchemaCollection中包含三个数据表.

说明:
实体类的设计参考了Duwamish7.0中结构形式;
考虑到数据库设计时的3NF,使用TableSchemaCollection结构添加数据表,支持将多个表添加至同一实体类。
相关软件要求:CodeSmith3.1,.Ner Framework1.1,SQL Server 2000及以上
不足:
类型化DataSet中只包含一个DataTable,即当添加多个表时将各字段置于同一DataTable中,影响灵活性;
不能生成自增字段,需在生成代码后手动更改指定;
由于还不清楚如何处理中文乱码,故代码中所有注释只能用英文,也请知道解决方法的朋友指点一声,感激不尽!
 

posted on 2006-10-02 17:39  Slash  阅读(1561)  评论(2)    收藏  举报