2018年9月24日
摘要: 在EF Core 2.0版本中出现了全局过滤新特性即HasQueryFilter,它出现的意义在哪里?能够解决什么问题呢? 通过HasQueryFilter方法来创建过滤器能够允许我们对访问特定数据库表的所有查询额外添加一模一样的过滤器。 它主要用于多租户和 软删除(soft-delete)场景,即 阅读全文
posted @ 2018-09-24 07:06 Gu 阅读(404) 评论(0) 推荐(0)
摘要: I have the following routing, which works on invokation /api/demo/info/34. [Route("api/demo")] public class Demo : Controller { [HttpGet("Info/{x}")] 阅读全文
posted @ 2018-09-24 05:34 Gu 阅读(25407) 评论(6) 推荐(3)