Hi!
I am green with LLBLgen and trying to do a proof of concept to replace our custom DAL and associated stored procedures by LLBLGEN. The custom DAL calls SPs for CRUD, access control and auditing services. I was able to implement DAL and CRUD elegantly with LLGEN.
The problem is to figure out how piggyback ACL to that. My first quess would be to generate code that would invoke our existing sql used defined access control function. How can I do that or better?
Samples query, from an SP with ACL support:
...
SELECT ...
FROM NamedList
WHERE
...
AND FN_ACCESS_VALIDATE(@userId, 'NamedList', objectId,'View') = 'Y'
.
New DAL :
using (var adapter = new DataAccessAdapter(StApplicationContext.ConnectionString, true))
{
var namedList = ToDal();
dalList = namedList.List;
adapter.FetchEntityCollection(dalList, namedList.GetRelationInfoList());
}
Thanks
SQL server 2008
.net 3.5
LLBLGen pro 2.6 (demo)