SubSonic-3.0
SubSonic-3.0 copied to clipboard
SQLite Table Names and T4 Template
Using SQLite v3 and ActiveRecord pattern.Created a table named "User.Categories". When the T4 template is run, the "." in the name seems to cause a problem with namespaces and therefore class generation.
You need to update the ActiveRecord.tt file's CleanUp method to remove any "." and replace it with string.empty or underscore, etc. You may run into another bug (seee #107), but the CleanUp method will get you past this first hurdle.
I found the CleanUp method in Settings.ttinclude, I'll make the change and see what happens. It would be nice to be able to use periods though...
Thanks!
You can't use periods because that's used to separate classes, namespaces, methods, properties, etc. It's a reserved symbol (that's probably not the correct phrase) just like how "*", commas, semicolons, etc. can't be used in a object's name.
It'd be nice to improve CleanUp for version 3.1 we should consider this