views:

85

answers:

1

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

... '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 sprocs?

+1  A: 

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.