Subsonic 去除对象名称中表名称中的尾随 s
我有一个名为 Group_Focus 的表,当我们使用 Subsonic 2.2 生成代码时,它会调用对象 GroupFocu,而文件名为 GroupFocu.cs 和 GroupFocuController.cs。无论如何,有没有办法让它在构建对象时不剥离 s ?
我在 web.config 的 Provider 设置中使用以下设置:
includeTableList="^Group" stripColumnText =“s_,d_,b_” stripTableText =“表”
I have a table called Group_Focus and when we generated our code with Subsonic 2.2 it's calling the object GroupFocu while the files are named GroupFocu.cs and GroupFocuController.cs. Is there anyway to get it to not strip off the s when it builds the objects?
I'm using the following settings in my Provider settings in the web.config:
includeTableList="^Group"
stripColumnText="s_,d_,b_"
stripTableText="tbl"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在提供程序上将“fixPluralClassNames”设置为 false 修复了此问题。不幸的是,看起来有很多对象已经删除了 s,所以我必须处理 GroupFocu 或将其重命名为其他名称,这样 s 就不会被删除。
Setting "fixPluralClassNames" to false on the provider fixed this. Unfortunately it looks like there were a lot of objects that already had an s stripped so I'll have to deal with GroupFocu or rename it to something else so the s doesn't get stripped.