SubSonic3 Context.cs 问题
生成 Context.cs 时遇到问题。
我遵循了 ActiveRecord 的 SubSonic3 设置,http://www.subsonicproject.com/docs/Using_ActiveRecord。我正在使用 MS 提供的 AdeventureWorks 示例数据库。
这是存在问题的许多行之一: DataProvider.Schema.Tables.Add(new StoreTable(DataProvider));
这是我收到的数据库中所有表的错误: 找不到类型或命名空间名称“StoreTable”(您是否缺少 using 指令或程序集引用?)
如果您能帮助解决此问题,我将不胜感激。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嘿 Rich - 确保您也使用“Structs.tt”文件 - 我需要更新文档。结构生成您需要的模式内容。
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.