Avatar of Prysson
Prysson
 asked on

How to restrict access to TableAdapter

I want to restrict a TableAdapater so that the queries I create in the tableadapter are only accessible from classes in the same project.  The project is to be compiled into a DLL and I dont want someone able to directly access the table adapters via the dll...they shoudl have to use the methods created in the BLL to access the queries in the tableadapters.

C#

Avatar of undefined
Last Comment
Prysson

8/22/2022 - Mon
rmindel

the easiest and best way to do this - is to make them Private
and make Methods who use them in the same class
ASKER CERTIFIED SOLUTION
dstanley9

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Prysson

ASKER
dstanley...do you mean the modifier on the tableadapter..set that to internal?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy