views:

34

answers:

1

I have an issue when the Context.cs is generated.

I have followed the SubSonic3 setup for ActiveRecord, http://www.subsonicproject.com/docs/Using%5FActiveRecord. I am using the AdeventureWorks sample database provided by MS.

This is one of many lines having the issue: DataProvider.Schema.Tables.Add(new StoreTable(DataProvider));

This is the error I am receiving for all tables in the database: The type or namespace name 'StoreTable' could not be found (are you missing a using directive or an assembly reference?)

I would appreciate any help resolving this issue.

+1  A: 

Hey Rich - make sure you use the "Structs.tt" file as well - I need to update the docs. The Structs generate the schema stuff you need.

Rob Conery
Rob - Thanks, my issue has been resolved. BTW, I love SubSonic!
Rich Blumer