Quantcast
Channel: LavaBlast Software Blog - SubSonic magic
Viewing all articles
Browse latest Browse all 41

Soulis on SubSonic magic

$
0
0
I am probably misunderstanding the instructions, but if you could be so kind as to bear with me.. SubSonic 2.1, modified the CS/ODS template to inherit from SubSonicController. Code generation happens, upon compilation I get errors stating that my classes (T,C) are actually ActiveRecord, ActiveList, and not AbstractRecord, AbstractList as the template direction above states.

So not being familiar with the ActiveRecord patterns, I simply changed the SubSonicController code to: public abstract class SubSonicController<T, C>
where T : ActiveRecord<T>, new()
where C : ActiveList<T, C>, new()

Am I doint something wrong in making this change? I wonder what it is Im missing (other than a thorough understanding of the underlying classes) Smile

Thanks in advance for any hints.

Viewing all articles
Browse latest Browse all 41

Trending Articles