I would like to construct a dynamic Subsonic 3 query using code to get a collection of a type. The SQL would like this:
select * from @tableName where @columnName1 = @columnValue1
The subsonic query would look like this:
List<object> = new DB.Select.From<getTypeClass(tableName)>.Where(columnName1).IsEqualTo(columnValue1).ExecuteTypeList<getTypeClass(tableName)>();
I would like to accomplish this using reflection but I don't think it would be possible to put a non static item between the <> clauses.