
C#
文章平均质量分 79
lxhjh
这个作者很懒,什么都没留下…
展开
-
T4模版在代码生成中的应用心得
转眼之间,我用T4模版已经三年多的时间。三年来,经过几个项目的磨合,在使用上偶有心得,在这里把一些问题一一罗列出来。 2010年9月,我第一次接触EntityFramework3.5,深深的被它类powerdesigner打动,开始琢磨它的使用。当时项目中,有位大拿,老琢磨EF、域模型以及MVC的搭配,对EF进行扩展等等。当时没有新项目,就做各种mode,挺好玩的。原创 2013-05-28 11:30:53 · 1216 阅读 · 0 评论 -
Log4Net介绍
1.2 Log4net的安装:用户可以从http://logging.apache.org/log4net/下载log4net的源代码。解压软件包后,在解压的src目录下将log4net.sln载入Visual Studio .NET,编译后可以得到log4net.dll。用户要在自己的程序里加入日志功能,只需将log4net.dll引入工程即可。原创 2014-05-21 10:35:39 · 629 阅读 · 0 评论 -
EF6 SQL Logging – Part 3: Interception building blocks
In parts 1 and 2 of this series we looked at how to use DbContext.Database.Log to log the SQL generated by EF. But this code is actually a relatively thin façade over some low-level building block转载 2014-03-19 09:56:31 · 1027 阅读 · 0 评论 -
EF6 SQL Logging – Part 2: Changing the content/formatting
In part 1 we saw how DbContext.Database.Log can be used to easily log SQL to the console or some other TextWriter. This post covers how the context and formatting of the output can be changed.Da转载 2014-03-19 09:53:49 · 1504 阅读 · 0 评论 -
EF6 SQL Logging – Part 1: Simple Logging
On the EF team we made a late decision to add some support for interception and logging of generated SQL in EF6. To this end recent checkins have added support for:A Log property for the context s转载 2014-03-19 09:51:18 · 937 阅读 · 0 评论 -
EntityFramework之领域驱动设计实践【扩展阅读】:CQRS体系结构模式
转自:http://www.cnblogs.com/daxnet/archive/2010/08/02/1790299.htmlCQRS体系结构模式本文将对CQRS(Command Query Responsibility Segregation,命令查询职责分离)模式做一个相对全面的介绍。可以这么说,CQRS打破了经典的领域驱动设计实践,在应用CQRS的整个过程中,你将会以另一种不同的角转载 2014-03-19 09:47:01 · 1131 阅读 · 0 评论 -
C#压缩解压文件及文件夹Helper
通过C#原生的ZipFile、GZipStream进行文件夹和文件的压缩和解压处理.using System.IO;using System.IO.Compression;namespace LinqXml{ public class CompressionHelper { #region -----------------------原创 2014-03-14 11:04:36 · 2554 阅读 · 0 评论 -
C#压缩解压Helper
C#压缩和解压文件、文件夹的helper原创 2014-03-14 10:58:41 · 1825 阅读 · 0 评论 -
C#压缩解压文件夹
C#对文件夹进行压缩和解压,使用System.IO.Compression和System.IO.Compression.FileSystem进行处理。原创 2014-03-14 10:53:04 · 6270 阅读 · 0 评论 -
Spring MVC Rest文件上传
Spring MVC Rest文件上传,异构平台间文件上传,文件上传接口调用,是本博客的要点原创 2013-07-17 10:40:17 · 6888 阅读 · 1 评论 -
C# PrintDocument类
一、 PrintDocument类。打印类PrintDocument类是包含在System.Drawing.Printing名词空间下的,这个类是用来与打印机进行交流传输使用的,它有专门的属性用来指定应该选择哪个打印机来打印,还有属性设置当前打印的纸张默认设置。使用方式:PrintDocument pdt = new PrintDocument();二、 PrintDocume原创 2013-06-27 12:40:05 · 3766 阅读 · 1 评论 -
C#通过OLEDB导出大数据到Excel
C#通过OLEDB导出大数据到Excel原创 2013-07-11 09:30:25 · 2640 阅读 · 0 评论 -
Log4Net使用详解
log4net解决的问题是提供一个记录日志的框架,它提供了向多种目标写入的实现,比如利用log4net可以方便地将日志信息记录到文件、控制台、Windows事件日志和数据库(包括MS SQL Server, Access, Oracle9i,Oracle8i,DB2,SQLite)中,一般来说我们只需要提供一个描述性的字符串,然后log4net就会自动提供有关运行时的一些信息。关于在Web原创 2014-05-21 11:19:14 · 1269 阅读 · 0 评论