subsonic / SubSonic-3.0-Templates

T4 Template Project for the peeps
http://subsonic.github.io/
105 stars 46 forks source link

General problem with templates commmited version #44

Open b2802 opened 14 years ago

b2802 commented 14 years ago

I forked subsonic 3.0 and subsonic 3.0 -templates and downloaded with git. Unfortunately Templates DO NOT work with current subsonic 3.0 version!!! in struct.tt line there is CleanName = "<#=col.CleanName#>" but in Subsonic/Core/Schema/DatabaseColumns.cs there is no property CleanName and no CleanName in IColumn !!! Additionaly SQLServer.ttinclude uses Cleanup, but these function doesn't exist in Settings.ttinclude. There are now 2 functions called CleanUpColumnName and CleanUpTableName. And in structs.tt there will be used in line 60 IsReadOnly = <#=col.IsReadOnly.ToString().ToLower()#> but in Settings.ttinclude calls Column doesn't contain property IsReadonly. It would be nice to get running version when downloading latest checked in version, or did I something wrong. I would like to create a fix for foreign keys when primary key has more the one column, but it isn't possible at the moment.