How to protect DAL objects?

Posts   
 
    
swegele
User
Posts: 33
Joined: 25-Jan-2007
# Posted on: 29-Jan-2007 03:26:06   

If I hide my DataLayer objects (MyDAL.DLL) inside BusinessLayer objects (MyBusLayer.DLL) how can I protect my DataLayer from just being referenced directly allowing them to connect to database?

MyDAL.DLL will be distributed to the client computer. Couldn't a user just start a new project in Visual Studio...reference the DLL and fairly easily get connected to the database bypassing all my business logic?

For now I am writing a webservice...but I might end up having to write a winforms app and I want to plan right for that day.

Thanks

Sean

Walaa avatar
Walaa
Support Team
Posts: 14983
Joined: 21-Aug-2005
# Posted on: 29-Jan-2007 08:01:47   

Check this link