Table of Contents

Class ModelDynamicFieldInfo

Namespace
Dynamicweb.CoreUI.Data
Assembly
Dynamicweb.CoreUI.dll
public record ModelDynamicFieldInfo : ModelFieldInfo, IEquatable<ModelFieldInfo>, IEquatable<ModelDynamicFieldInfo>
Inheritance
ModelDynamicFieldInfo
Implements
Inherited Members
Extension Methods

Constructors

ModelDynamicFieldInfo(string, string?, bool, Type?, string?, string?, string?)

public ModelDynamicFieldInfo(string systemName, string? label, bool isReadonlyField, Type? valueType, string? sourceSystemName = null, string? modelPropertyName = null, string? dynamicGroupSystemName = null)

Parameters

systemName string
label string
isReadonlyField bool
valueType Type
sourceSystemName string
modelPropertyName string
dynamicGroupSystemName string

Properties

DynamicGroupSystemName

public string? DynamicGroupSystemName { get; }

Property Value

string

Hint

public string? Hint { get; set; }

Property Value

string

IsSortable

Gets a value indicating whether a list can be sorted by this field. Defaults to false. A field provider sets this to true only when the screen's query is able to translate the field's system name into a sort expression.

public bool IsSortable { get; init; }

Property Value

bool

ModelPropertyName

public string? ModelPropertyName { get; }

Property Value

string

SourceSystemName

public string? SourceSystemName { get; }

Property Value

string

ValueType

public Type? ValueType { get; }

Property Value

Type

Methods

MatchesContext(string?, string?)

Determines whether this dynamic field matches sourceSystemName and groupSystemName.

public bool MatchesContext(string? sourceSystemName, string? groupSystemName)

Parameters

sourceSystemName string

The source system name to match. A null or empty value accepts every source. When this argument is nonempty, a null or empty SourceSystemName on the field does not match.

groupSystemName string

The group system name to match. A null or empty value accepts every group. When this argument is nonempty, a null or empty DynamicGroupSystemName on the field does not match.

Returns

bool

true if both restrictions are satisfied; otherwise, false.

To top