Rich Blumer
Rich Blumer

Reputation: 998

SubSonic3 Context.cs Issue

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

I have followed the SubSonic3 setup for ActiveRecord, http://www.subsonicproject.com/docs/Using_ActiveRecord. 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.

Upvotes: 0

Views: 100

Answers (1)

user1151
user1151

Reputation:

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.

Upvotes: 1

Related Questions