我正在尝试使用 t4toolbox 为项目生成 linq2sql 类。已经有很多针对默认 dbml 生成代码编写的代码。
在 LinqToSqlEntityClassTemplate.tt 文件中它有
/// <para>
/// While MSLinqToSQLGenerator generates field names as property name with an
/// underscore prefix, this method simply converts the property name to camelCase.
/// This is done for consistency with the StyleCop rule SA1306: Variable names
/// must start with a lower-case letter.
/// </para>
有没有办法让它以默认方式(Visual Studio 方式)而不是 camelCasing 并且没有下划线生成文件?
由于字段名称不同,t4toolbox 生成的代码会导致 400+ 错误。