Is there some place I can change output settings for the Visual Studio Linq-to-Sql designer? I would like to control if table names are pluralized/depluralized, add specific attributes, na开发者_开发知识库mespace etc. Can something of this be done without manually changing the files after they are created?
You can change the names of tables/entities from the Table properties in the designer. It has a Name, and a Source. The Source, of course, is the underlying database, but you can change the name to suit your needs. Other than that, I don't know of a way to specifically pluralize or depluralize items.
Also, don't manually edit the files output by the L2S designer - they'll just get overwritten the next time you make a change in the designer. To extend the generated classes, use partial classes.
It seems at this point the answer is "no".
精彩评论