共 7 篇文章 |
|
cmd.public void AddOutParameter(DbCommand cmd, string parameterName, DbType dbType, int size)public void AddInParameter(DbCommand cmd, string parameterName, DbType dbType, object value)public void AddReturnParameter(DbCommand cmd, string parameterName, DbType dbType)public DbParameter GetParameter(DbCommand cmd, strin... 阅2812 转13 评0 公众公开 14-09-24 13:07 |
自己最近写的一组日志处理类(支持高并发处理)[csharp]/// <summary> /// 文件日志处理类,利用队列机制,让写日志调用和日志写到文件分离,调用 /// 方将要写的日志和目标文件插入到日志队列中去就返回, /// 然后由内置线程去写到文件里去。} private FileLogWorker GetFileLogWorker(string FullPath) {... 阅494 转0 评0 公众公开 14-09-24 13:06 |
阅137 转0 评0 公众公开 14-09-24 12:54 |
微软企业库(Enterprise Library)学习技术专题 · 数据访问应用程序块简介 数据访问程序块从表面上看很像是ADO.NET,确实如此,DataAccess Application Block 不是ADO.NET的替代品,它是对ADO.NET的补充。当然也不是在任何情况下都要用DataAccess Application Block,例如,当我们的代码是为了一种很特殊的数据库而编写的话,这... 阅148 转0 评0 公众公开 14-09-24 12:43 |
C#使用Log4Net记录日志。双击net文件夹,选择针对.NET FramerWork的不同版本。找到相应版本的log4net.dll.1、在项目中添加Log4Net.DLL的引用。把Log4Net.Dll复制到项目的根目录下,然后添加Log4Net的引用。> 2 <configuration> 3 <configSections> 4 <section name="log4net" type="log4net.Log4NetConfigura... 阅228 转2 评0 公众公开 14-09-24 12:38 |
Log4日志组件的应用确实简单实用,在比较了企业库和Log4的日志功能后,个人觉得Log4的功能更加强大点.补充说明下,我使用的企业库是2.0版本,Log4net是1.2.1版本的. 阅1762 转2 评0 公众公开 14-09-24 12:34 |
} /// <summary> /// Write Message by datetime and message content and type /// </summary> /// <param name="dateTime">datetime</param> /// <param name="text">message content</param> /// <param name="type">message type... 阅154 转0 评0 公众公开 14-09-24 11:45 |