The catalog domain model

Current version: 9.0
The SortDirection class diagram.
Note

The domain model consists of classes that make up the contracts with the external system. The contracts are defined as classes instead of interfaces to allow the model to be easily extended later if needed. This follows the best practice guidelines defined in the Framework Design Guidelines.

Default implementation of the contracts are delivered as part of Connect. If an actual Connect provider with an external commerce system contains more functionality than provided by default, the implementation can be replaced. All instantiation of actual classes is handled through dependency injection.

Class: SortDirection

The SortDirection class is used as a strongly typed value to indicate the sort direction of a search. Using a strongly typed value eases the use of the API for solution developers. The following example illustrates the use of the class as an enum-like parameter.

Name

Type

Description

Ascending

public const int Ascending = 1

Indicates that the request should be sorted ascending.

Descending

public const int Descending = 2

Indicates that the request should be sorted descending.

Do you have some feedback for us?

If you have suggestions for improving this article,