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

推荐订阅源

酷 壳 – 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

博客园 - Slash

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