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

推荐订阅源

Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
N
Netflix TechBlog - Medium
腾讯CDC
C
Check Point Blog
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
S
SegmentFault 最新的问题
F
Fortinet All Blogs
美团技术团队
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
F
Full Disclosure
Recorded Future
Recorded Future
D
DataBreaches.Net
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
J
Java Code Geeks
I
InfoQ
Y
Y Combinator Blog
A
About on SuperTechFans
AI
AI
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Forbes - Security
Forbes - Security
W
WeLiveSecurity
M
MIT News - Artificial intelligence
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Docker
Recent Commits to openclaw:main
Recent Commits to openclaw:main
量子位
V2EX - 技术
V2EX - 技术
Project Zero
Project Zero

博客园 - 一九零零

python 中文乱码解决 用户中心 - 博客园 Windows Nginx 下启动关闭的管理批处理脚本 window nginx 多站点(虚拟主机)配置 HttpRuntime.Cache[""] 泛型强制转换时 值类型的错误 解决不能加载 MagicNet.dll 组件 固定长度和变长 字符串 对 默认值的处理 C#写COM组件提供ASP使用(转) - 一九零零 - 博客园 如何使用FindControl查找内容页上的某个控件? - 一九零零 - 博客园 jQuery.Validate 使用笔记 整理和收集一些 AspNetPager 分页样式,比较美观 排序 SELECT INTO 生成的表 默认的一个排序序号字段是,自增长标识列 Win 2003 系统下,发布 Asp.Net Ajax 带来的环境问题 数据库备份打包工具 Asp.NET 网站程序,在 IIS6.0 部署时出现的环境问题集? 网页效果方面的建议 有关 VS 2008 Toolbox 载入控件重复的解决办法! @@IDENTITY,SCOPE_IDENTITY和IDENT_CURRENT的辨析 IE中打开UTF-8编码title为中文的网页会显示空白页的问题
发布一款实体代码生成器 V3.0 格式相对美观
一九零零 · 2009-05-16 · via 博客园 - 一九零零

名称:实体代码生成器 V3.0

下载地址:实体代码生成器 V3.0 下载

说明:

  1. 环境要求:Dotnetfx2.0 以上;
  2. 格式相对美观,支持 MSSQL 2000,2005;使用到 DataRabbit.dll 和 ESBasic.dll 组件;借鉴和使用了 DataRabbit 实体生成的特点;
  3. 自动保存数据库配置信息;
  4. 可以指定实体代码文件生成路径,默认是当前目录下 buildDocument/数据库名称;

最新更新:

  1. 更新了在生成“私有变量”代码块儿时,注释文本的Tab键对齐方式;详见文后的代码片段;1个Tab=4个半角空格

配置文件说明:

<!-- 数据库用户名 -->
<add key="dbuser" value="sa" />
<!-- 数据库密码 -->
<add key="dbpwd" value="sqlpwd" />
<!-- 数据库名称 -->
<add key="dbname" value="UCTestWebDB" />
<!-- 数据库服务器地址 -->
<add key="serverAddr" value="(local)" />
<!-- 实体命名空间 -->
<add key="namespaceEntity" value="Game.Entity" />
<!-- 保存路径 -->
<add key="saveFolder" value="E:\Entity\" /><!-- 版本:GameWeb 4.0 -->
<add key="gwVersion" value="GameWeb 4.0" />
 
<!-- 作者:http://www.foxuc.com -->
 
<add key="domain" value="http://www.foxuc.com" />

生成代码片段:

Code

更新之后的代码片段:

#region 私有变量
private string m_smtp;                    //smtp 地址
private int m_port;                       //端口号码
private string m_sysemail;                //系统邮件地址
private string m_username;                //邮件帐号
private string m_password;                //邮件密码
private string m_emailcontent;            //邮件内容
#endregion