[英]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.