c# 日志
文章平均质量分 77
我才是小白白
希望通过平台,更加完善自己!
展开
-
c#用log4Net将日志写入到Oracle数据库,并写入到文件中
1.从官网下载log4net包,安装到项目中; 2.配置文件log4net.config/app.config原创 2018-01-16 11:33:03 · 1443 阅读 · 0 评论 -
c#生成年,年月,年月日,季度,周类型日期。
public static List GetYearMonthList(int type = 1) { List rList = new List(); DateTime curTime = DateTime.Now.AddMonths((type == 1 ? -1 : 0)); rList.Add(new原创 2018-01-18 18:15:36 · 1707 阅读 · 0 评论