Getting error like “are you missing a using directive or an assembly refrence?” in subsonic

StackOverflow https://stackoverflow.com/questions/7731544

I am developing MVC 3 application and its first time i am using subsonic.

I get this error (The type or namespace name 'name of my tables' could not be found()are you missing a using directive or an assembly refrence?)) in Context.cs file when i compile my ASP.NET MVC3 Web Application. I follow these guide http://subsonicproject.com/docs/Setting_up_SubSonic_3.0 but i cant solve this problem.Any ideas?

有帮助吗?

解决方案

You're using ActiveRecord T4 templates right?

In ActiveRecord.cs there should be a class for each of your tables. Have they been created correctly?

Also, in Settings.ttinclude there should be a namespace setting. Is that namespace surrounding the code in your Context.cs and ActiveRecord.cs?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top