I have a table which contains list of Business objects with corresponding accesses for roles. Now I wish to retrieve list of roles authorized to access particular business object in AddObjectAuthorizationRules()
how do I write a method which retrieves Roles from database for Authorization for that particular object?
Your roles should be loaded up front and your AddObjectAuthorizationRules() should only set them for the object. The roles are read from the database in the DAL of your Identity object.
Todd
Copyright (c) Marimer LLC