简体   繁体   English

如何使用Subsonic向数据库表中添加列?

[英]How to add a column to a database table using Subsonic?

I am trying to add a column to a database table in an application that is using SubSonic 2.0.3.0 as the generator for the database layer. 我正在尝试在使用SubSonic 2.0.3.0作为数据库层生成器的应用程序中向数据库表添加一列。

I just cant get the hang of it. 我只是无法掌握它。 I tried to manually update the generated file of the table but it doesn't work. 我试图手动更新表的生成文件,但是它不起作用。 I have been trying to get the subsonic files regenerated but i cant find the sonic.exe tool that's needed? 我一直在尝试重新生成亚音速文件,但找不到所需的sonic.exe工具? Can anyone help me to understand this? 谁能帮我理解这一点?

You can download the latest 2.0 version of the project from https://github.com/subsonic/SubSonic-2.0 , after you build it the sonic.exe will be in SubSonic\\SubCommander\\bin\\Debug. 您可以从https://github.com/subsonic/SubSonic-2.0下载该项目的最新2.0版本,构建后,sonic.exe将位于SubSonic \\ SubCommander \\ bin \\ Debug中。

Then I've just got a little script file 然后我有了一个小脚本文件

del /q "DAL\*.*"
"..\..\ExternalResources\lib\sonic.exe" generate /out "DAL"
pause

Is that enough to get you on track? 这足以使您步入正轨吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用反射使用动态表和列名称构建Subsonic 3查询 - Howto build Subsonic 3 query with dynamic table and column names using reflection 如果列的单个名称与表名称相同,如何避免SubSonic 3中的错误? - How to avoid errors in SubSonic 3 if the singular name of a column is the same as the table name? 如何使用C#和OleDB将富文本列添加到Access数据库表中? - How to add rich text column to Access database table using C# and OleDB? 如何在表格中添加列? - How to add a column in table? 如何使用ActiveRecord在SubSonic 3.0中筛选GetPaged - How to filter a GetPaged in SubSonic 3.0 using ActiveRecord 如何使用PLSQL更新指定列的数据库表的行条目 - How to update row entries of database table of specified column using PLSQL 如何在不使用数据读取器的情况下从数据库表列填充 DataGridViewComboBoxColumn - How to fill DataGridViewComboBoxColumn from a database table column without using datareader 我们如何基于Sql中的其他表值动态添加数据库表列 - How can we add database table column dynamically based on other table values in Sql 如何在数据库中添加BLOB列? - How to add BLOB column in database? 如果使用Datagridview在表2中存在列A,那么如何添加它的值 - How to add value of column A if it exist on Table 2 using Datagridview
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM