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
systemNamestringlabelstringisReadonlyFieldboolvalueTypeTypesourceSystemNamestringmodelPropertyNamestringdynamicGroupSystemNamestring
Properties
DynamicGroupSystemName
public string? DynamicGroupSystemName { get; }
Property Value
Hint
public string? Hint { get; set; }
Property Value
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
ModelPropertyName
public string? ModelPropertyName { get; }
Property Value
SourceSystemName
public string? SourceSystemName { get; }
Property Value
ValueType
public Type? ValueType { get; }
Property Value
Methods
MatchesContext(string?, string?)
Determines whether this dynamic field matches sourceSystemName
and groupSystemName.
public bool MatchesContext(string? sourceSystemName, string? groupSystemName)
Parameters
sourceSystemNamestringThe 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.
groupSystemNamestringThe 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.