Try our conversational search powered by Generative AI!

Class ProfileMigrator

Class to migrate orders/carts/wishlists when a customer logs in.

Inheritance
System.Object
ProfileMigrator
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Order
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2
Syntax
public class ProfileMigrator : IProfileMigrator

Constructors

ProfileMigrator(IOrderRepository, ICurrentMarket, CartMigrator)

Initializes a new instance of the ProfileMigrator class.

Declaration
public ProfileMigrator(IOrderRepository orderRepository, ICurrentMarket currentMarket, CartMigrator cartMigrator)
Parameters
Type Name Description
IOrderRepository orderRepository

The order repository.

ICurrentMarket currentMarket

The current market.

CartMigrator cartMigrator

The cart migrator.

Methods

MigrateCarts(Guid)

Migrates the existing cart, merges the items.

Declaration
public virtual void MigrateCarts(Guid anonymousId)
Parameters
Type Name Description
System.Guid anonymousId

The anonymous identifier.

MigrateOrders(Guid)

Migrates the orders.

Declaration
public virtual void MigrateOrders(Guid anonymousId)
Parameters
Type Name Description
System.Guid anonymousId

The anonymous identifier.

MigrateWishlists(Guid)

Migrates the wishlist, merges the items.

Declaration
public virtual void MigrateWishlists(Guid anonymousId)
Parameters
Type Name Description
System.Guid anonymousId

The anonymous identifier.

Implements