2016年6月3日
摘要: Client Credentials Grant的授权方式就是只验证客户端(Client),不验证用户(Resource Owner),只要客户端通过验证就发access token。 举一个对应的应用场景例子,比如我们想提供一个“获取网站首页最新博文列表”的WebAPI给iOS App调用。 由于 阅读全文
posted @ 2016-06-03 18:19 邢帅杰 阅读(1718) 评论(0) 推荐(0) 编辑
摘要: 指定数据连接,指定表名,移除表名复数化(表名后面不加s),设置字段约束,主外键关系。 阅读全文
posted @ 2016-06-03 15:18 邢帅杰 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 数据注解 using System.ComponentModel.DataAnnotations; KeyAttribute 唯一主键StringLengthAttribute 字符串长度约束MaxLengthAttribute 最大长度ConcurrencyCheckAttribute 并发检查属 阅读全文
posted @ 2016-06-03 15:06 邢帅杰 阅读(157) 评论(0) 推荐(0) 编辑