![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
cj_1993
这个作者很懒,什么都没留下…
展开
-
C#写日志
//写日志 public static void LogInfo(string msg) { string uploadPath = HttpContext.Current.Server.MapPath("Log") + "\\"; if (!Directory.Exists(uploadPath))原创 2017-07-12 13:15:02 · 182 阅读 · 0 评论 -
微软企业库的使用
1、config里面配置 C#后台代码: Database db = DatabaseFactory.CreateDatabase("name");//创建数据库实例 string sql = @"select * from table where username=@username"; DbCommand c原创 2017-07-12 13:20:10 · 1875 阅读 · 1 评论