![]() | CYQ.Data componentsCYQ.Data support multi-database application [Txt,Xml,Access, MSSQL, Oracle,SQLite,MySql], help easily and quickly to develop your project |
CYQ.Data 数据框架 优雅V1.4 枚举生成器工具
Platform for dynamic |
|
|
| #TopicOwner |
前言说明 本次发布的辅助工具,只是为简化一些操作,其功能基本为CYQ.Data.SQL名称空间下的OutPutData类提供。 本次发布的辅助工具,同样适用于V1.3版本
下面进行说明: 一:总体上图 1:运行时主界面
2:生成表枚举区:
3:生成视图枚举区:
4:生成存储过程枚举区:
5:关于
二:使用说明 1:数据库链接配置 A:修改与增加:修改默认的数据库链接为你项目的数据库链接,点击“测试链接”,测试通过则点击“保存链接”。 如图,新增加了一个MessageConn的数据库链接,下次启动时该链接仍存在。 B:删除:如果需要删除链接,选中要删除的链接,点击“移除链接”即可。 重要说明 所有的数据库操作包括枚举生成,都对当前使用的链接数据库进行操作
2:选定数据库类型 A:选择数据库类型,生成的分页存储过程与此有关。 B:项目是否多个数据库,和生成的枚举有关。 说明:多数据库下产生的枚举名称按约定生成,详细见:CYQ.Data 轻量数据层之路 优雅V1.4 现世 附API帮助文档(九) 关于枚举约定说明。
3:一次性操作 A:生成分页存储过程:点击则自动在数据库自动创建分页存储过程。 B:生成异常日志表:点击则自动在数据库自动创建表[ErrorLogs] 开启日志还需2步: 1:增加AppSetting属性IsWriteLog 2:增加日志的数据库链接[考虑到日志库可能与当前库不在同一数据库情况] 配置示例如下 ![]() ![]() <appSettings><add key="IsWriteLog" value="true"/>appSettings> <connectionStrings> <add name="Conn" connectionString="Server=.;database=Chat;uid=sa;pwd=123456"/> <add name="LogConn" connectionString="Conn"/>//采用借用Conn方法,当然也可以写完整链接字符串 connectionStrings>
4:枚举文件保存路径 简单的说,就是你生成的枚举文件,放在项目的哪个路径,一次保存,终生使用。
5:表/视图/存储过程枚举生成 A:预览:就是查看生成后的文件 B:直接保存到文件:点击就保存文件了,路径为“枚举文件路径+"\\"+文件名称” C:修改:点击可修改保存的文件名称,下次会按新保存的文件名称加载。
6:关于 这个为作者博客地址及相关说明。
最后结案陈词: 本次辅助工具,一次保存,终生使用。 当你再修改数据库,只要打开工具,点一下相应的“直接保存到文件”覆盖文件即可。 最后祝大家用的开心,用的放心,用的省心。
![]() |
Post Comment
Bulletin
Article Search
Categories
- Platform for dynamic (20)
- Feedback (9)
- Guide (33)
- Principles (19)
- Project-Case (8)
- Business & Buy (2)
- Technology exchange (45)
New Article
- CYQ.Data Components Getting Started Guide [Part 5]-[MProc Execute Stored Procedures or SQL]
- CYQ.Data Components Getting Started Guide [Part 4]-[MAction Insert Delete Update]
- CYQ.Data Components Getting Started Guide [Part 3]-[MAction Get And Set Value]
- CYQ.Data Components Getting Started Guide [Part 2]-[MAction Data Query- Fill And Select]
- CYQ.Data Components Getting Started Guide [Part 1]
New Comment
- When some one searches for his necessary thing, therefore he/she wishes to be available that in detail, so that thing is maintained over here.
- This is my first time pay a quick visit at here and i am in fact happy to read everthing at alone place.
- I truly appreciate this blog article.Really thank you! Cool.
- please pay a visit to the web sites we follow, like this one particular, as it represents our picks in the web
- Really enjoyed this post.Really thank you!
- Really enjoyed this article.Really looking forward to read more. Great.
- poker bonuses What are the norms of copyright of web content? How as it different from Patent?
- Wow! Thank you! I permanently needed to write on my blog something like that. Can I implement a fragment of your post to my site?
- This website was how do I say it? Relevant!! Finally I ave found something that helped me. Cheers!
- I was reading through some of your content on this internet site and I believe this web site is very informative ! Continue posting.