生成订单组ID或订单项ID? [英] Generating an order group id or line item id?

查看:286
本文介绍了生成订单组ID或订单项ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

保存订单的部分过程会导致Commerce Server自动为与订单关联的每个订单项生成订单项ID。由于我不想进入这里的原因,我只想自己生成订单项ID
并避免"保存"调用,因为此时我这样做的唯一原因是生成订单项ID。因此,如果我使用C#代码生成行项目ID,例如:Guid lineItemId = Guid.NewGuid(),Commerce Server将简单地忽略生成行项目ID和"执行其他操作"的自动
部分。当订单最终被保存时?


谢谢。


Kevin Burton

解决方案

< blockquote>

Kevin,


我认为我们不具备这种灵活性。你看到商业服务器是否正在生成GUID的问题是什么?


Part of the process of saving an order causes Commerce Server to automatically generate line item ids for each of the line items associated with the order. For reasons that I don't want to go into here I would like to only generate the line item id myself and avoid the 'Save' call since the only reason that I am doing this at this point is to generate the line item ids. So if I generate the line item ids with C# code like: Guid lineItemId = Guid.NewGuid() would Commerce Server simply ignore the part of automatically generating the line item id and "do everything else" when the order is eventually saved?

Thank you.


Kevin Burton

解决方案

Kevin,

I don't think we have that flexibility. Whats issue you are seeing if commerce server is generating the GUIDs?


这篇关于生成订单组ID或订单项ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆