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