2011-04-19 42 views
0

購買訂單可以存儲在Commerce Server 2007中的purchaseorders表中,該表中包含有限的默認存儲列。如果你想添加新的列到這個表中,用來存儲額外的訂單信息呢?擴展Commerce Server2007 PurchaseOrder

請注意,我是一個初學者在商業服務器提前

KP

回答

1

感謝您可以通過兩種方式擴展個PurchaseOrder表。兩者都涉及增加額外的數據到PurchaseOrder類和映射,要在數據庫中的一個新列:

  1. 弱類型PurchaseOrder類屬性映射到一個新的數據庫列How to Map a Weakly Typed Indexer Property to an Explicit Database Column記錄了這一點,並明確提到了PurchaseOrder方案。博客文章Mapping Weakly Typed Properties to Storage中也有相關材料。

  2. 從PurchaseOrder派生一個新類並添加一個屬性。請閱讀How to Derive a New Orders ClassHow to Modify the Orders Configuration Files以瞭解這一點。另請參閱整個部分Extending the Orders Runtime。最後,有一個example of the entire process,但應用於LineItem類。

重要提示:雖然第一種方法是更快,它使用CS BizTalk適配器時,有一定的侷限性。例如,我不認爲您可以使用弱類型屬性進行關聯。然而,我的記憶對此很朦朧(只記得被這些線上的東西咬傷)。