I am developing a general database query tool - the .NET 3.5 Windows Form application. So that the presentation level does not depend on the database level. I am using the ORM framework, XPO from DevExpress.
But I do not have a built-in access control function. I was browsing the Internet, and I found in WCF's data services, there is an interesting Interceptor concept that follows AOP (aspect-oriented programming).
I am wondering who has such experience for creating access control in ORM. My basic requirement:
- This should be a general method and controlled by users at runtime. Therefore, any hard coding is unacceptable.
- It can be based on an attribute, a database table, or even an external assembly.
I am ready to buy a turnkey solution. According to the idea of AOP, the access control function can be integrated with existing functions easily and almost unreasonable for the previous developer;)
Any suggestions are welcome.
c # database access-control orm
Ying
source share