开发者

Subsonic Strips trailing s from Table Name in Object names

开发者 https://www.devze.com 2023-01-04 04:00 出处:网络
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

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 s开发者_JAVA百科trip 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"


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消