How do you fashion projections in SubSonic 2.2? Basically I wish to return columns from two tables that are joined.
SubSonic 2.2 Projections
subsonic
Related Topic
- How to perform a table UNION in SubSonic
- Subsonic 3 – Object of type ‘System.Byte[]’ cannot be converted to type ‘System.String’
- SubSonic 2.2: DefaultConnectionString
- Sql – Using Subsonic 2.2 on Windows Mobile 5 with SQL Server CE 3.5
- Subsonic 2.2 InnerJoin Across Two Databases
- Sql – Table Alias in SubSonic
Best Answer
My personal preference for how to do this is to create a SQL View which joins the table and have subsonic generate an object that maps to it.
You can also use ExecuteTypedList with a custom defined object for example: