Table of Contents

Class ShopGroupRelationKey

Namespace
Dynamicweb.Ecommerce.Shops
Assembly
Dynamicweb.Ecommerce.dll

Represents a unique key for a ShopGroupRelation.

public sealed class ShopGroupRelationKey : IEquatable<ShopGroupRelationKey>
Inheritance
ShopGroupRelationKey
Implements
Inherited Members

Constructors

ShopGroupRelationKey(ShopGroupRelation)

Initializes a new instance of the class from an ShopGroupRelation instance.

public ShopGroupRelationKey(ShopGroupRelation shopGroupRelation)

Parameters

shopGroupRelation ShopGroupRelation

The ShopGroupRelation instance.

Exceptions

ArgumentNullException

Thrown if shopGroupRelation is null.

ArgumentException

Thrown if ShopId or GroupId properties of shopGroupRelation are null or empty.

ShopGroupRelationKey(string, string)

Initializes a new instance of the class

public ShopGroupRelationKey(string shopId, string groupId)

Parameters

shopId string

The id of the shop

groupId string

The id of the group

Exceptions

ArgumentNullException

Thrown if shopId or groupId is null.

ArgumentException

Thrown if shopId or groupId is empty.

Properties

GroupId

Gets or sets the id of the group

public string GroupId { get; }

Property Value

string

ShopId

Gets or sets the id of the shop

public string ShopId { get; }

Property Value

string

Methods

Equals(ShopGroupRelationKey?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ShopGroupRelationKey? other)

Parameters

other ShopGroupRelationKey

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

To top