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
shopGroupRelationShopGroupRelationThe ShopGroupRelation instance.
Exceptions
- ArgumentNullException
Thrown if
shopGroupRelationis null.- ArgumentException
Thrown if ShopId or GroupId properties of
shopGroupRelationare null or empty.
ShopGroupRelationKey(string, string)
Initializes a new instance of the class
public ShopGroupRelationKey(string shopId, string groupId)
Parameters
Exceptions
- ArgumentNullException
Thrown if
shopIdorgroupIdis null.- ArgumentException
Thrown if
shopIdorgroupIdis empty.
Properties
GroupId
Gets or sets the id of the group
public string GroupId { get; }
Property Value
ShopId
Gets or sets the id of the shop
public string ShopId { get; }
Property Value
Methods
Equals(ShopGroupRelationKey?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ShopGroupRelationKey? other)
Parameters
otherShopGroupRelationKeyAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.