随笔分类 -  ASP.NET MVC

摘要:参数为 Stream 如果实体: 参考: http://www.voidcn.com/article/p-ejufiyei-ud.html 阅读全文
posted @ 2019-04-30 16:48 -Ward- 阅读(191) 评论(0) 推荐(0)
摘要:用如下方法获取UserId报空引用异常 1 2 3 4 5 6 7 8 9 public class BaseController : Controller { protected SiteContext db = new SiteContext(); protected Guid userId; 阅读全文
posted @ 2016-04-05 21:48 -Ward- 阅读(303) 评论(0) 推荐(0)
摘要:我的文档\Visual Studio 2015\Settings\CurrentSettings.vssettings Environment_Toolbox 节点 <Category name="Environment_Toolbox" Category="{481999F2-7479-4e03- 阅读全文
posted @ 2016-02-19 20:30 -Ward- 阅读(1652) 评论(0) 推荐(0)
摘要:public static class MapperExtensions { public static TResult MapTo<TResult>(this object self, TResult result) { if (self == null) throw new ArgumentNu 阅读全文
posted @ 2016-02-15 23:41 -Ward- 阅读(657) 评论(0) 推荐(0)
摘要:GlobalConfiguration.Configuration.Formatters.Remove(config.Formatters.JsonFormatter); 阅读全文
posted @ 2015-09-22 19:03 -Ward- 阅读(479) 评论(0) 推荐(0)
摘要:ViewBag.TypeID = new SelectList(db.TType, "ID", "Name", model.TypeID); @Html.DropDownList("TypeID ") 阅读全文
posted @ 2015-08-25 10:30 -Ward- 阅读(398) 评论(0) 推荐(1)