Table of Contents

Class JsonDataModule

Namespace
Tripous.Data
Assembly
Tripous.Data.dll

JSON contract for a DataModule used by Tripous Web.

public class JsonDataModule
Inheritance
JsonDataModule
Inherited Members
Extension Methods

Constructors

JsonDataModule()

Constructor.

public JsonDataModule()

JsonDataModule(DataModule)

Constructor.

public JsonDataModule(DataModule Source)

Parameters

Source DataModule

Properties

CascadeDeletes

True when deletes should cascade from details to master.

public bool CascadeDeletes { get; set; }

Property Value

bool

ClassName

The module class name.

public string ClassName { get; set; }

Property Value

string

ConnectionName

The connection name.

public string ConnectionName { get; set; }

Property Value

string

DataSet

The data set.

public JsonDataSet DataSet { get; set; }

Property Value

JsonDataSet

Description

The module description.

public string Description { get; set; }

Property Value

string

Group

The module group.

public string Group { get; set; }

Property Value

string

GuidOids

True when key values are Guid strings.

public bool GuidOids { get; set; }

Property Value

bool

IsSingleSelect

True when the module has a fixed single select.

public bool IsSingleSelect { get; set; }

Property Value

bool

ItemCaptionField

The field used as item caption.

public string ItemCaptionField { get; set; }

Property Value

string

ItemTableName

The item table name.

public string ItemTableName { get; set; }

Property Value

string

ListTableName

The list table name.

public string ListTableName { get; set; }

Property Value

string

MainTableName

The main table name.

public string MainTableName { get; set; }

Property Value

string

Name

The module name.

public string Name { get; set; }

Property Value

string

QueryNames

The select query names.

public List<string> QueryNames { get; set; }

Property Value

List<string>

SecurityLevel

The minimum security level required to access the module as a UserLevel integer value.

public int SecurityLevel { get; set; }

Property Value

int

State

The data module state as a DataMode integer value.

public int State { get; set; }

Property Value

int

StockNames

The stock table names.

public List<string> StockNames { get; set; }

Property Value

List<string>

Title

The module title.

public string Title { get; set; }

Property Value

string

TitleKey

The module title localization key.

public string TitleKey { get; set; }

Property Value

string

UseFilters

True when filters should be used by UI.

public bool UseFilters { get; set; }

Property Value

bool

Methods

ToJObject()

Converts this instance to a JSON object.

public JsonObject ToJObject()

Returns

JsonObject

ToJObject(DataModule)

Converts a data module to a JSON object.

public static JsonObject ToJObject(DataModule Source)

Parameters

Source DataModule

Returns

JsonObject

ToJson()

Converts this instance to JSON text.

public string ToJson()

Returns

string