Quantcast
Viewing latest article 40
Browse Latest Browse All 41

Ray on SubSonic magic

Thanks Etienne, great article! I'm getting a funny error when trying to build with the SubSonicController as the base class:

Template Change (in CS_ODSController.aspx):

public partial class <%=tbl.ClassName %>Controller : SubSonicController[<]<%=tbl.ClassName %>, <%=tbl.ClassName %>Controller[>]

Build Error (in project using the generated dll from successful SubSonic build):

The type 'MORIS.DAL.BudgetController' must be convertible to 'SubSonic.AbstractList<MORIS.DAL.Budget,MORIS.DAL.BudgetController>' in order to use it as parameter 'C' in the generic type or method 'SubSonic.SubSonicController<T,C>'

Have you come across this one before? I put the SubSonic Controller class in the SubSonic namespace, as I was having trouble getting the CS_ODSController.aspx template to add in an import for the other namespace.

Viewing latest article 40
Browse Latest Browse All 41

Trending Articles