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
originalQueryParameter
QueryParameter(string, Type, bool)
Represents a query parameter with its name and type.
public QueryParameter(string Name, Type Type, bool IsRequired = false)
Parameters
NamestringThe name of the query parameter.
TypeTypeThe type of the query parameter.
IsRequiredboolWhether the query parameter is required.
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
IsRequired
Whether the query parameter is required.
public bool IsRequired { get; init; }
Property Value
Name
The name of the query parameter.
public string Name { get; init; }
Property Value
Type
The type of the query parameter.
public Type Type { get; init; }
Property Value
Methods
Deconstruct(out string, out Type, out bool)
public void Deconstruct(out string Name, out Type Type, out bool IsRequired)
Parameters
Equals(QueryParameter?)
public virtual bool Equals(QueryParameter? other)
Parameters
otherQueryParameter
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(QueryParameter?, QueryParameter?)
public static bool operator ==(QueryParameter? left, QueryParameter? right)
Parameters
leftQueryParameterrightQueryParameter
Returns
operator !=(QueryParameter?, QueryParameter?)
public static bool operator !=(QueryParameter? left, QueryParameter? right)
Parameters
leftQueryParameterrightQueryParameter