Class QueryParameter

Namespace
Cratis.Arc.Queries
Assembly
Cratis.Arc.Core.dll

Represents a query parameter with its name and type.

public record QueryParameter : IEquatable<QueryParameter>
Inheritance
QueryParameter
Implements
Inherited Members
Extension Methods

Constructors

QueryParameter(QueryParameter)

protected QueryParameter(QueryParameter original)

Parameters

original QueryParameter

QueryParameter(string, Type, bool)

Represents a query parameter with its name and type.

public QueryParameter(string Name, Type Type, bool IsRequired = false)

Parameters

Name string

The name of the query parameter.

Type Type

The type of the query parameter.

IsRequired bool

Whether the query parameter is required.

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

IsRequired

Whether the query parameter is required.

public bool IsRequired { get; init; }

Property Value

bool

Name

The name of the query parameter.

public string Name { get; init; }

Property Value

string

Type

The type of the query parameter.

public Type Type { get; init; }

Property Value

Type

Methods

Deconstruct(out string, out Type, out bool)

public void Deconstruct(out string Name, out Type Type, out bool IsRequired)

Parameters

Name string
Type Type
IsRequired bool

Equals(QueryParameter?)

public virtual bool Equals(QueryParameter? other)

Parameters

other QueryParameter

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(QueryParameter?, QueryParameter?)

public static bool operator ==(QueryParameter? left, QueryParameter? right)

Parameters

left QueryParameter
right QueryParameter

Returns

bool

operator !=(QueryParameter?, QueryParameter?)

public static bool operator !=(QueryParameter? left, QueryParameter? right)

Parameters

left QueryParameter
right QueryParameter

Returns

bool