[英]Build Number in SQL Azure
I have an Azure web service and accompanying sql-azure db that both need to expose a version number. 我有一个Azure Web服务和随附的sql-azure db,都需要公开一个版本号。 The service is straight forward: update the assemblyinfo to generate based on revision & build, and just expose that.
该服务很简单:更新assemblyinfo以基于修订和构建生成,然后公开该信息。
How can I do something similar in the db? 如何在数据库中执行类似的操作? I had toyed with an auto-incremented number, but that increments the 'version' even if I deploy the same bits twice and does not guarantee continuity across servers with the same bits.
我曾玩过一个自动递增的数字,但是即使我两次部署相同的位,这也会增加“版本”,并且不能保证具有相同位的服务器之间的连续性。 And, because it's sql-azure, I don't believe I can pull the value from assemblyinfo, can I?
而且,因为它是sql-azure,所以我不相信我可以从assemblyinfo中获取值,可以吗?
If I can expose the same build number the service shows, that'd be great, but it's not required. 如果我可以公开该服务显示的内部版本号,那将是很好的,但这不是必需的。
Now, you'll have same version number in both database & your assemblies. 现在,数据库和程序集中的版本号都相同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.