subsonic / SubSonic-3.0-Templates

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

Views not generated #25

Open jamesewelch opened 15 years ago

jamesewelch commented 15 years ago

There is a enum called TableType.View in the DatabaseTable class. So I suppose this is supposed to be used when generating a view?

Class files for views should be generate by default. It's easy enough to modify the TABLE_SQL to pull views and tables, but I think you need to use a class such as SubSonic.Schema.DatabaseView, so that the records know they are pulled from a View rather than a Table. Things like Save, Delete, etc. to a view would not be allowed, etc.