私はSitecoreからKenticoへデータを移行するためのツールを開発しています。私は、Kentico API 9を使用して2つの異なる文化を持つ製品を作成する方法を探しています。Sitecoreからデータを抽出し、APIを使用してKenticoに保存したいと考えています。Kentico API 9を使用したMulticulture製品の作成
私はKenticoのドキュメントをチェックアウトしたのだが、製品を作成するためのコードを提供してくれます:
// Gets a department
DepartmentInfo department = DepartmentInfoProvider.GetDepartmentInfo("NewDepartment", SiteContext.CurrentSiteName);
// Creates a new product object
SKUInfo newProduct = new SKUInfo();
// Sets the product properties
newProduct.SKUName = "NewProduct";
newProduct.SKUPrice = 120;
newProduct.SKUEnabled = true;
if (department != null)
{
newProduct.SKUDepartmentID = department.DepartmentID;
}
newProduct.SKUSiteID = SiteContext.CurrentSiteID;
// Saves the product to the database
// Note: Only creates the SKU object. You also need to create a connected Product page to add the product to the site.
SKUInfoProvider.SetSKUInfo(newProduct);
しかし、私は文化ごとに添付ファイル付きのマルチ培養物を作成する方法を見つけ出すことはできません。
いずれにせよ、SitecoreからKenticoにデータを移行する方法をお勧めしますか?