Table of Contents

Class Element

Namespace
JJMasterData.Commons.Data.Entity.Models
Assembly
JJMasterData.Commons.dll

Metadata representation of a database element.

public class Element
Inheritance
Element
Derived
Inherited Members

Remarks

2017-03-22 - JJTeam

Constructors

Element()

Metadata representation of a database element.

public Element()

Remarks

2017-03-22 - JJTeam

Element(string)

public Element(string name)

Parameters

name string

Element(string, string)

public Element(string name, string description)

Parameters

name string
description string

Properties

ConnectionId

Custom connection string. If null, will use the default JJMasterData:ConnectionString from IConfiguration.

[Display(Name = "Connection String")]
[JsonProperty("connectionId")]
public Guid? ConnectionId { get; set; }

Property Value

Guid?

EnableSynchronism

[JsonProperty("sync")]
public bool EnableSynchronism { get; set; }

Property Value

bool

Fields

[JsonProperty("fields")]
public ElementFieldList Fields { get; set; }

Property Value

ElementFieldList

Indexes

[JsonProperty("indexes")]
public List<ElementIndex> Indexes { get; set; }

Property Value

List<ElementIndex>

Info

[JsonProperty("info")]
public string? Info { get; set; }

Property Value

string

Name

[JsonProperty("name")]
[Display(Name = "Element Name")]
public required string Name { get; set; }

Property Value

string

ReadProcedureName

[JsonProperty("customprocnameget")]
[Display(Name = "Read Procedure")]
public string? ReadProcedureName { get; set; }

Property Value

string

Relationships

[JsonProperty("relations")]
public List<ElementRelationship> Relationships { get; set; }

Property Value

List<ElementRelationship>

Schema

[JsonProperty("schema")]
[Display(Name = "Schema")]
public string? Schema { get; set; }

Property Value

string

SynchronismMode

Works online or offline on synchronized devices

[JsonProperty("mode")]
public SynchronismMode SynchronismMode { get; set; }

Property Value

SynchronismMode

Remarks

Behavior whether data will be synchronized online or offline

Default = SyncMode.Online

TableName

[JsonProperty("tableName")]
[Display(Name = "Table Name")]
public required string TableName { get; set; }

Property Value

string

UseReadProcedure

[JsonProperty("useReadProcedure")]
[Display(Name = "Use Read Procedure")]
public bool UseReadProcedure { get; set; }

Property Value

bool

UseWriteProcedure

[JsonProperty("useWriteProcedure")]
[Display(Name = "Use Write Procedure")]
public bool UseWriteProcedure { get; set; }

Property Value

bool

WriteProcedureName

[JsonProperty("customprocnameset")]
[Display(Name = "Write Procedure")]
public string? WriteProcedureName { get; set; }

Property Value

string

Methods

GetPrimaryKeys()

public List<ElementField> GetPrimaryKeys()

Returns

List<ElementField>