row-level-security

Implementing Row Level Security in SQL Server 2008

别等时光非礼了梦想. 提交于 2019-11-29 17:51:56
问题 Is there a built-in feature, or way to simulate RLS(Row Level Security) in SQL Server 2008 as found in Oracle? 回答1: This MS whitepaper outlines how to do it. http://technet.microsoft.com/en-us/library/cc966395.aspx You take the permissions away from the table, then create a series of security tables and roles that allow you to validate each level for the user. After you setup your security checking on the user, you use a view to filter what the user can query via the security levels and the

Row Level Security with Entity Framework

↘锁芯ラ 提交于 2019-11-28 21:38:58
I've been trying to consider how Row Level Security could be implemented with the Entity Framework. The idea is to have a database agnostic means that would offer methods to restrict the rows coming from the ObjectContext. Some of my inital ideas have involved modifying the partial classes created by the EDMGEN tool and that has offered some limited support. Users are still able to get around this solution by using their own eSQL statements and a QueryObject. I've been looking for a comprehensive solution that would exist above the database providers so that it would remain agnostic. Craig