SubSonic 3 and MySQL, removing underscore from column name in CleanUp() method causes exceptions when using property in linq-query
问题 I've run into a problem when using SubSonic 3(.0.0.3) ActiveRecord with MySQL. Since MySQL doesn't allow you to use uppercase letters in table or column names (or rather disregards it if you do) I decided to separate words using underscores, e.g. entity_id, and then use the CleanUp() method to add title casing and remove the underscores. A friend wrote a ToTitleCase(string s) method that looks like this: string ToTitleCase(string s) { CultureInfo cultureInfo = Thread.CurrentThread