亚音速,MVC和ActiveRecord的 [英] subsonic, mvc and activerecord
问题描述
我使用的亚音速3.0和活动记录与MySQL数据库 现在一切都很好,但我似乎无法创建视图看到的例子:
i am using subsonic 3.0 and active record with a mysql database now everything is fine, but i cant seem to create views see example:
public ActionResult Index()
{
return View(contact.GetPaged(1,20));
}
现在通常我会右击并选择添加视图 然后,我会选择强类型,找到类的repositary
now normally i would right click and choose Add View i would then choose strongly typed and find the class for the repositary
然而,由于某些原因,只有类我得到显示出来是亚音速只 但希望看到新类的新生成的graniteMysqlDB
however for some reason the only classes i get showing up are for subsonic only but expect to see the new class from the new generated graniteMysqlDB
如果任何人都可以请指教,我会因为有doesent似乎不胜感激 任何论坛链接或任何用于亚音速。
if anyone could please advice i would be most grateful as there doesent seem to be any forum links or anything for subsonic.
感谢
推荐答案
好吧,我已经解决了这个问题,但答案就在这里任何人都应该需要它,或者想知道发生了什么事。
okay i have solved the problem, but the answer is here should anyone need it or wants to know what happened.
我把我的TT文件到模型文件夹,我的namesspace应该已经test2.Models
i put my TT files into the models folder, my namesspace should have been test2.Models
但它是测试2
也是我所需要的使用指令使用test2.Models的;在我的网页的顶部。
also i needed the using directive of using test2.Models; at the top of my page.
仍然得到一个错误,在这里我要纠正它把inherites视图 我要改变这
still get an error where i have to correct the view on the inherites it puts i have to change this to
很不错,现在是这样的亚音速非常非常快装相比其他的东西,我都习惯了。
very nice now is this subsonic very very fast loading compared to other stuff i have used.
TA
这篇关于亚音速,MVC和ActiveRecord的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!