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
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
Fields
[JsonProperty("fields")]
public ElementFieldList Fields { get; set; }
Property Value
Indexes
[JsonProperty("indexes")]
public List<ElementIndex> Indexes { get; set; }
Property Value
Info
[JsonProperty("info")]
public string? Info { get; set; }
Property Value
Name
[JsonProperty("name")]
[Display(Name = "Element Name")]
public required string Name { get; set; }
Property Value
ReadProcedureName
[JsonProperty("customprocnameget")]
[Display(Name = "Read Procedure")]
public string? ReadProcedureName { get; set; }
Property Value
Relationships
[JsonProperty("relations")]
public List<ElementRelationship> Relationships { get; set; }
Property Value
Schema
[JsonProperty("schema")]
[Display(Name = "Schema")]
public string? Schema { get; set; }
Property Value
SynchronismMode
Works online or offline on synchronized devices
[JsonProperty("mode")]
public SynchronismMode SynchronismMode { get; set; }
Property Value
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
UseReadProcedure
[JsonProperty("useReadProcedure")]
[Display(Name = "Use Read Procedure")]
public bool UseReadProcedure { get; set; }
Property Value
UseWriteProcedure
[JsonProperty("useWriteProcedure")]
[Display(Name = "Use Write Procedure")]
public bool UseWriteProcedure { get; set; }
Property Value
WriteProcedureName
[JsonProperty("customprocnameset")]
[Display(Name = "Write Procedure")]
public string? WriteProcedureName { get; set; }
Property Value
Methods
GetPrimaryKeys()
public List<ElementField> GetPrimaryKeys()