Table of Contents

Class FormElementApiOptions

Namespace
JJMasterData.Core.DataDictionary.Models
Assembly
JJMasterData.Core.dll
public class FormElementApiOptions
Inheritance
FormElementApiOptions
Inherited Members

Properties

ApplyUserIdOn

Always apply UserId (from login) as filter or on set

[JsonProperty("applyUserIdOn")]
[Display(Name = "Apply User Id On")]
public string? ApplyUserIdOn { get; set; }

Property Value

string

EnableAdd

Add new records. POST Verb.

[JsonProperty("enableAdd")]
public bool EnableAdd { get; set; }

Property Value

bool

EnableDel

Delete a record. DEL Verb.

[JsonProperty("enableDel")]
public bool EnableDel { get; set; }

Property Value

bool

EnableGetAll

Get all records. GET Verb.

[JsonProperty("enableGetAll")]
public bool EnableGetAll { get; set; }

Property Value

bool

EnableGetDetail

Get a record detail. GET Verb.

[JsonProperty("enableGetDetail")]
public bool EnableGetDetail { get; set; }

Property Value

bool

EnableUpdate

Update records. PUT Verb.

[JsonProperty("enableUpdate")]
public bool EnableUpdate { get; set; }

Property Value

bool

EnableUpdatePart

Update some specifics fields. PATCH Verb ,

[JsonProperty("enableUpdatePart")]
public bool EnableUpdatePart { get; set; }

Property Value

bool

JsonFormatting

[JsonProperty("formatType")]
[Display(Name = "Json Formatting")]
public ApiJsonFormatting JsonFormatting { get; set; }

Property Value

ApiJsonFormatting

Methods

DeepCopy()

public FormElementApiOptions DeepCopy()

Returns

FormElementApiOptions

GetJsonFieldName(string)

public string GetJsonFieldName(string fieldName)

Parameters

fieldName string

Returns

string

The field name according to the JsonFormatting property.

HasGetMethod()

public bool HasGetMethod()

Returns

bool

HasMethod()

public bool HasMethod()

Returns

bool

HasSetMethod()

public bool HasSetMethod()

Returns

bool