Class ConsumerSearchQuery
Provides parameters for a query that selects products from the registry.
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities.Search
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
public sealed class ConsumerSearchQuery : IValidator
Constructors
ConsumerSearchQuery()
Declaration
public ConsumerSearchQuery()
Properties
ErrorMessage
Gets the message indicating the errors found during validation process.
Declaration
public string ErrorMessage { get; }
Property Value
| Type | Description |
|---|---|
| string |
IsEnabled
Gets or sets the flag indicating that consumer account is enabled and can be used.
Declaration
[DataMember(EmitDefaultValue = false)]
public bool? IsEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Key
Gets or sets the consumer unique identifier. If key is provided then all other search parameters are ignored.
Declaration
[DataMember(EmitDefaultValue = false)]
public Guid? Key { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid? |
Name
Gets or sets the searching entity friendly name that may include wildcards.
Declaration
[DataMember(EmitDefaultValue = false)]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SortField
Gets or sets the field that result will be sorted by.
Declaration
[DataMember]
public ConsumersSortField SortField { get; set; }
Property Value
| Type | Description |
|---|---|
| ConsumersSortField |
SortOrder
Gets or sets the result sort order.
Declaration
[DataMember]
public SortOrder SortOrder { get; set; }
Property Value
| Type | Description |
|---|---|
| SortOrder |
Methods
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
| Type | Description |
|---|---|
| bool | True if state is valid; otherwise, false. |