Is there any way that I can access my SQL views in SubSonic 3.0? The code generation seems to skip views altogether
相关问题
- Subsonic 3 and The Adjacency Model
- Funky Sql Generated using SubSonic Simple Reposito
- subsonic 3.0 , The SqlServer default value doesn
- Subsonic: How to exclude a table column so that it
- SubSonic 3 - Simple repository - One to many relat
相关文章
- Defining SubSonic 3 ActiveRecord migrations
- Object mapping with LINQ and SubSonic
- SubSonic SimpleRepository Updates Cause Null Refer
- MVC.net + subsonic Auto Generate MetaData Classes
- Give an example of using subsonic 3
- SubSonic3: Method “FirstOrDefault” throws exceptio
- Is connection pooling working correctly in Subsoni
- Subsonic 3.0 and linq
To include views in your project
simply open SQLServer.ttinclude Find the query that load the tables ( search form 'const string TABLE_SQL') then change it to
if you are using it in an asp.net project you can exclude the aspnet table and views like so
The SubSonic 3 templates don't generate code for views yet. You could add the functionality yourself quite easily though, have a look at the LoadTables and GetSPs methods in SQLServer.ttinclude to see how SubSonic builds lists of tables\stored procedures.