How to generate private LINQ to SQL classes?

后端 未结 1 622
被撕碎了的回忆
被撕碎了的回忆 2021-01-19 23:39

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

1条回答
  •  鱼传尺愫
    2021-01-19 23:52

    It is possible, in the Visual Studio Designer select the class and in properties you can change Access to Internal.

    alt text http://img410.imageshack.us/img410/970/l2svs2008access.png

    The same principles apply for the DataContext itself (just click in the "white area" of the designer) and change under Properties.

    0 讨论(0)
提交回复
热议问题