This is a migrated thread and some comments may be shown as answers.

Row security / hooks

1 Answer 46 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vincent
Top achievements
Rank 1
Vincent asked on 11 Feb 2011, 02:14 PM
We are thinking about using the OpenAccess ORM in our product, but we have some advanced scenarios which we are not sure of if they are supported by OpenAccess. We want to enable multi-tenant databases in our product, this means that we need to be able to filter the data that is returned from the database based on the user that is currently performing the requests. Also we want to be able to configure simular scenarios to have row level security to prevent users in a certain role to view parts of the data in the table. Does OpenAccess have hooks or extension points to support the above mentioned scenarios?

1 Answer, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 15 Feb 2011, 09:47 AM
Hello Vincent,
There is not declarative way to specify filters. Nevertheless all queries have an entry point at the generated context. there you can apply the filter to the IQueryable before you give it out. For collection content you can implement the getter related to your needs, just execute the query with the applied filter there.

Kind regards,
Jan Blessenohl
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Tags
Development (API, general questions)
Asked by
Vincent
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Share this question
or