Class ScaffoldField
- Namespace
- Kuestenlogik.Bowire.Scaffold
- Assembly
- Kuestenlogik.Bowire.Scaffold.dll
One field of a ScaffoldSpec.
public sealed record ScaffoldField : IEquatable<ScaffoldField>
- Inheritance
-
ScaffoldField
- Implements
- Inherited Members
Constructors
ScaffoldField(string, string, bool)
One field of a ScaffoldSpec.
public ScaffoldField(string Name, string Type, bool Required = false)
Parameters
NamestringThe field name; camelCase on the wire.
TypestringOne of Types.
RequiredboolWhether a create or update without it is refused.
Properties
Name
The field name; camelCase on the wire.
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
Required
Whether a create or update without it is refused.
[JsonPropertyName("required")]
public bool Required { get; init; }
Property Value
Type
One of Types.
[JsonPropertyName("type")]
public string Type { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out bool)
public void Deconstruct(out string Name, out string Type, out bool Required)
Parameters
Equals(ScaffoldField?)
public bool Equals(ScaffoldField? other)
Parameters
otherScaffoldField
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ScaffoldField?, ScaffoldField?)
public static bool operator ==(ScaffoldField? left, ScaffoldField? right)
Parameters
leftScaffoldFieldrightScaffoldField
Returns
operator !=(ScaffoldField?, ScaffoldField?)
public static bool operator !=(ScaffoldField? left, ScaffoldField? right)
Parameters
leftScaffoldFieldrightScaffoldField