SubSonic-3.0-Templates icon indicating copy to clipboard operation
SubSonic-3.0-Templates copied to clipboard

General problem with templates commmited version

Open b2802 opened this issue 14 years ago • 0 comments

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.

b2802 avatar Mar 15 '10 11:03 b2802