上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 63 下一页
  2016年6月14日
摘要: MVC过滤器类型:Authorization(授权),继承IAuthorizationFilter接口,用于限制进入Controller或ActionAction(行为),继承IActionFilter接口,用于进入Action之前或之后的处理Result(结果),继承IResultFilter接口 阅读全文
posted @ 2016-06-14 14:26 邢帅杰 阅读(222) 评论(0) 推荐(0)
  2016年6月12日
摘要: @Styles.Render("~/Content/css")//在head中引用css @Scripts.Render("~/bundles/modernizr")//在head中引用js @Html.ActionLink("LinkText", "ActionName", "Controller 阅读全文
posted @ 2016-06-12 10:15 邢帅杰 阅读(226) 评论(0) 推荐(0)
  2016年6月3日
摘要: Client Credentials Grant的授权方式就是只验证客户端(Client),不验证用户(Resource Owner),只要客户端通过验证就发access token。 举一个对应的应用场景例子,比如我们想提供一个“获取网站首页最新博文列表”的WebAPI给iOS App调用。 由于 阅读全文
posted @ 2016-06-03 18:19 邢帅杰 阅读(1776) 评论(0) 推荐(0)
摘要: 指定数据连接,指定表名,移除表名复数化(表名后面不加s),设置字段约束,主外键关系。 阅读全文
posted @ 2016-06-03 15:18 邢帅杰 阅读(491) 评论(0) 推荐(0)
摘要: 数据注解 using System.ComponentModel.DataAnnotations; KeyAttribute 唯一主键StringLengthAttribute 字符串长度约束MaxLengthAttribute 最大长度ConcurrencyCheckAttribute 并发检查属 阅读全文
posted @ 2016-06-03 15:06 邢帅杰 阅读(164) 评论(0) 推荐(0)
  2016年6月2日
摘要: [RemoteExt("IsValidUId", "RVMdEmployee", "", AdditionalFields = "__DS", ErrorMessageResourceName = "G_DuplicatedKey", ErrorMessageResourceType = typeo 阅读全文
posted @ 2016-06-02 15:51 邢帅杰 阅读(161) 评论(0) 推荐(0)
  2016年6月1日
摘要: style="overflow:hidden;text-overflow: ellipsis;white-space:nowrap;word-break:keep-all;" 阅读全文
posted @ 2016-06-01 18:29 邢帅杰 阅读(194) 评论(0) 推荐(0)
  2016年5月27日
摘要: js输出/获得Cookie 阅读全文
posted @ 2016-05-27 16:07 邢帅杰 阅读(2494) 评论(0) 推荐(0)
摘要: 普通WebApi上传文件 #region 上传文件 /// <summary> /// 通过multipart/form-data方式上传文件 /// </summary> /// <returns></returns> [HttpPost] public async Task<HttpRespon 阅读全文
posted @ 2016-05-27 08:53 邢帅杰 阅读(9013) 评论(1) 推荐(0)
  2016年5月26日
摘要: var q = db.Customers.OrderBy(c => c.City).ThenBy(c => c.ContactName).ToList(); var q = from item in listAll orderby item.ParentID ascending, item.Sort 阅读全文
posted @ 2016-05-26 09:35 邢帅杰 阅读(362) 评论(0) 推荐(0)
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 63 下一页