![]() | 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 数据框架 配置项[Web.config|App.config]说明
Guide |
|
|
| #TopicOwner |
CYQ.Data 数据框架 配置项[Web.config|App.config]说明如下: PS:key项对应的value,如果值不带(*)号,则为系统默认值。 一:异常日志相关配置项 AppSettings:<add key="IsWriteLog" value="true" /> AppSettings:<add key="LogPath" value="Log/"/> ConnectionStrings:<add name="LogConn" connectionString="Conn" /> IsWriteLog值说明: true:[默认]开启写日志,数据库执行异常信息将写到Errorlogs表中,需指定LogConn数据库链接。如果写Errorlogs表失败,异常信息将写成txt文本,并保存到LogPath配置的路径中。 false:关闭写日志,数据库执行异常将直接抛出。 PS提示:LogCnn的connectionString本为数据库链接字符串,简写Conn指取Conn项的链接。 二:缓存管理相关配置 AppSettings:<add key="CacheDefaultTime" value="30" /> AppSettings:<add key="CacheClearWorkTime" value="5/"/> AppSettings:<add key="CacheClearTime" value="4" /> AppSettings:<add key="CacheClearCallCount" value="2/"/> 各项值说明: CacheDefaultTime:默认所有缓存项的时间[分钟(默认30)] CacheClearWorkTime:缓存线程工作时间[(默认5)分钟同步一次] CacheClearTime:[N(默认4)分钟]内调用次数少于CacheClearCallCount指定值,缓存即被清除 CacheClearCallCount:指定值[默认2],次数,和CacheClearTime配合使用。 PS:默认为:每5分钟执行清除:如果某项缓存开启后4分钟内调用次数少于2,被清除。 三:Xml相关配置项 AppSettings:<add key="DtdUri" value="Setting/DTD/xhtml1-transitional.dtd(*)" /> AppSettings:<add key="UseFileLoadXml" value="false" /> AppSettings:<add key="Domain" value="" /> AppSettings:<add key="SysLangKey" value="China" /> 各项值说明: DtdUri:XmlHelper加载html时,指定DTD解析文档相对路径。 UseFileLoadXml:XmlHelper加载html时,使用File方式加载Xml[在IIS7以上非信任主机机制下使用] Domain:MutilLanguage多语言类,是根据Cookie标识,因此可设置域名。 SysLangKey:MutilLanguage多语言类,取的语言文件的默认节点值[Node.InnerText]。 四:其它配置项 AppSettings:<add key="Aop" value="UrlRewrite,CYQ.Data.Rewrite(*)" /> AppSettings:<add key="AutoID" value="AutoID" /> AppSettings:<add key="LockOnDbExe" value="false" /> AppSettings:<add key="OpenDebugInfo" value="false" /> 各项值说明: Aop:如使用CYQ.Data.Aop功能,需要配置此项。 AutoID:如使用Oracle,主键ID非GUID型,需建立索引序列,此为序列名称配置项。 LockOnDbExe:提前没开启事务,需要对添加/更新/删除进行Lock,可开启此项。 OpenDebugInfo:打开调试信息,则action.DebugInfo将带有所有SQL执行语句记录。 ![]() |
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.