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

Name string

The field name; camelCase on the wire.

Type string

One of Types.

Required bool

Whether 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

string

Required

Whether a create or update without it is refused.

[JsonPropertyName("required")]
public bool Required { get; init; }

Property Value

bool

Type

One of Types.

[JsonPropertyName("type")]
public string Type { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out bool)

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

Parameters

Name string
Type string
Required bool

Equals(ScaffoldField?)

public bool Equals(ScaffoldField? other)

Parameters

other ScaffoldField

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ScaffoldField?, ScaffoldField?)

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

Parameters

left ScaffoldField
right ScaffoldField

Returns

bool

operator !=(ScaffoldField?, ScaffoldField?)

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

Parameters

left ScaffoldField
right ScaffoldField

Returns

bool