- 博客(4)
- 收藏
- 关注
转载 MVC运行机制
一,第一次程序运行时1,第一次请求的时候 会获取配置文件,同时加载global.asax文件。执行global.asax的Application_Start()方法,调用 RouteConfig.RegisterRoutes(RouteTable.Routes); 来注册路由规则,RouteConfig.RegisterRoutes()方法里,给出的默认规则为{controller}...
2016-08-30 16:07:00 174
转载 JObject对json的操作
一,需去程序集添加using Newtonsoft.Json.Linq;引用using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using...
2016-08-30 14:45:00 97
转载 C#Stopwatch的使用,性能测试
一,先开启开始或继续测量某个时间间隔的运行时间,然后停止,最后重置时间,输出.using System;using System.Collections.Generic;using System.Diagnostics;using System.Linq;using System.Web;using System.Web.UI;using Syste...
2016-08-29 11:23:00 206
转载 数据库DateTime类型为空的处理
一,写一个辅助类,将该方法设为静态,先装换为object,在转为DateTime,返回DateTime public class DateTimeHelper { public static DateTime ToDateTime(object time) { DateTime dt; ...
2016-08-22 10:45:00 707
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人