您好,我刚刚下载了 subsonic 3.0,我想使用存储过程。我不知道该选择哪个模板:ActiveRecord 还是 LinqTemplates。我真的不知道有什么区别。我知道我不想处理 Linq 代码。我只想 subsonic 基于表及其关系(如果可能)生成类,并生成与存储过程交互的代码。
我在 subsonicproject 网站上找不到很多信息。我不知道将哪个模板文件夹拖到我的项目中,也不知道要更改哪个 _settings.tt 文件。 T4 模板下有四个文件夹:ActiveRecord、LinqTemplates、SubSonic.TemplatesVB、TemplateProviders。我不知道针对我的情况该处理哪一个。有人可以发布分步说明吗,或者将我指向一个已经这样做的页面?
谢谢
Hi I just downloaded subsonic 3.0 and I want to work with stored procedures. I don't know which template to choose: ActiveRecord or LinqTemplates. I don't really know the difference. I know that I don't want to deal with Linq code. I just want subsonic to generate classes based on tables and also their relationships (if possible) and generate code to interface with stored procedures.
I couldn't find a lot of info on the subsonicproject site. I don't know which template folder to drag into my project, and which _settings.tt file to change. Under the T4 templates, there are four folders: ActiveRecord, LinqTemplates, SubSonic.TemplatesVB, TemplateProviders. I don't know which one to deal with for my situation. Can somebody post step by step instructions please, or point me to a page that already does?
Thanks
发布评论
评论(1)
我当前正在使用 Activerecord 模板,该模板使用数据库中的每个存储过程生成一个类。 settings.tt 文件取决于您正在使用的数据库(SQL Server、SQLite、MySQL...)有一个配置 Activerecord 模板的简单说明:http://subsonicproject.com/docs/Using_ActiveRecord
I'm currently using the Activerecord template, wich generates a class with every stored procedure in the database. The settings.tt files depend on wich database you're working (SQL Server, SQLite, MySQL..) There is a straightforward instruction to configure the Activerecord templates: http://subsonicproject.com/docs/Using_ActiveRecord