R – SubSonic 3.0 stored procedure generation

stored-proceduressubsonic3

When using SubSonic 3.0.0.3 and the StoredProcedures.tt template, the generated code won't compile and throws an error:

… 'DB' does not contain a definition for 'Provider' …

This is in the calling method for the sproc.

StoredProcedure sp = new StoredProcedure("Company_Get", this.Provider);

Am I missing something or is there a bug in the 3.0 templates for generating wrappers around stored procedures?

Best Answer

I guess those of us wanting to use v3 of SubSonic are on the bleeding edge. I needed to generate the code with the context.tt as well. This corrected my problem. This is really cool stuff, but the screen casts and the docs are not keeping up with how quickly the product is evolving.