I'm trying to figure out how to make the generated Linq to SQL classes be marked private instead of public, so that it is not visible outside the assembly. There doesn't seem to be a way to do this in the Visual Studio O/R designer or the SqlMetal tool, unless I'm missing something. Has anyone found a way to do this?
I'm asking because I'm using Linq to SQL internally as a data access layer in a business logic assembly. I am exposing to clients a separate set of custom entity classes, and I don't want the Linq to SQL classes to be exposed at all.