ASP.NET MVC学习笔记 NerdDinner实战1 中文Visual Studio 2008的设置修改以实现复数表单数类名

原文中写道:

By default the LINQ to SQL designer automatically "pluralizes" table and column names when it creates
classes based on a database schema.  For example: the "Dinners" table in our example above resulted in
a "Dinner" class. 

但在我的VS2008中文版中Dinners表直接就成了Dinners类。。。

查找的结果发现是默认设置的问题:

工具->选项->数据库工具(若没有出现则勾选“显示所有设置”)-》O/R Designer中启用改为true

image

P.S. 刚参加了一个rails项目,对比之下ASP.NET MVC的道路还很长呀~

原文地址:https://www.cnblogs.com/linxi/p/1567237.html