从 Oracle 10g Express 切换到 SQL Server Compact (NHibernate)
嘿,我正在将应用程序从 Oracle 10g 切换到 SQL Server Compact。目前我在映射文件中有这个:
<id name="Id" column="MY_ID">
<generator class="sequence">
<param name="sequence">MY_SEQ</param>
</generator>
</id>
并且我被告知 SQL Server Compact 中不存在序列,我想知道是否有等效的。我还想知道如果有同等的产品,我是否会切换到 SQL Server 2000/2005。
Hey, I am switching my application from Oracle 10g to SQL Server Compact. Currently I have this in the mapping file:
<id name="Id" column="MY_ID">
<generator class="sequence">
<param name="sequence">MY_SEQ</param>
</generator>
</id>
and I have been informed that sequence does not exist in SQL Server Compact, I was wondering if there was an equivalent. Also I was wondering if I switch to SQL Server 2000/2005 if there is an equivalent.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有很多选项:
GUID:
整体型身份:
本机,即身份、序列或 hilo,具体取决于底层数据库的功能:
More information::
There are many options here:
GUID:
Integral-type identities:
Native, i.e. identity, sequence or hilo depending upon the capabilities of the underlying database:
More information::