2018年10月25日 星期四

create view 注意陷阱

若之後修改table 且把新欄位插入中間,且create view 的寫法是 select * from xxx,可能會造成欄位對應錯誤 (例如 select a as b,b as c from xxx),請將create view 改成列舉欄位名稱的寫法

沒有留言:

自訂權限驗證機制

// 使用 filter [Route("api/[controller]")] [ApiController] [Authorize] [TypeFilter(typeof(CustomAsyncAuthorizationFilter))] public c...