开发者

SubSonic3 Context.cs Issue

开发者 https://www.devze.com 2022-12-14 01:33 出处:网络
I h开发者_Go百科ave 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 AdeventureW

I h开发者_Go百科ave 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消