Class SchemaMap
Maps Erlang schemas -> CRUD and CRUD -> Erlang
Inheritance
System.Object
SchemaMap
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: NFX.Erlang.dll
Syntax
Constructors
SchemaMap(ErlDataStore, String)
Declaration
public SchemaMap(ErlDataStore store, string xmlContent)
Parameters
Type |
Name |
Description |
ErlDataStore |
store |
|
System.String |
xmlContent |
|
Fields
CONFIG_CASE_ATTR
Declaration
public const string CONFIG_CASE_ATTR = "case"
Field Value
Type |
Description |
System.String |
|
CONFIG_CODE_ATTR
Declaration
public const string CONFIG_CODE_ATTR = "code"
Field Value
Type |
Description |
System.String |
|
CONFIG_DEFAULT_ATTR
Declaration
public const string CONFIG_DEFAULT_ATTR = "default"
Field Value
Type |
Description |
System.String |
|
CONFIG_DELETE_ATTR
Declaration
public const string CONFIG_DELETE_ATTR = "delete"
Field Value
Type |
Description |
System.String |
|
CONFIG_DESCR_ATTR
Declaration
public const string CONFIG_DESCR_ATTR = "descr"
Field Value
Type |
Description |
System.String |
|
CONFIG_DISPLAY_ATTR
Declaration
public const string CONFIG_DISPLAY_ATTR = "display"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string CONFIG_DISPLAY_FORMAT_ATTR = "display-format"
Field Value
Type |
Description |
System.String |
|
CONFIG_FIELD_SECTION
Declaration
public const string CONFIG_FIELD_SECTION = "field"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string CONFIG_FORMAT_ATTR = "format"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string CONFIG_FORMAT_DESCR_ATTR = "format-descr"
Field Value
Type |
Description |
System.String |
|
CONFIG_INSERT_ATTR
Declaration
public const string CONFIG_INSERT_ATTR = "insert"
Field Value
Type |
Description |
System.String |
|
CONFIG_KEY_ATTR
Declaration
public const string CONFIG_KEY_ATTR = "key"
Field Value
Type |
Description |
System.String |
|
CONFIG_LEN_ATTR
Declaration
public const string CONFIG_LEN_ATTR = "len"
Field Value
Type |
Description |
System.String |
|
CONFIG_MAX_ATTR
Declaration
public const string CONFIG_MAX_ATTR = "max"
Field Value
Type |
Description |
System.String |
|
CONFIG_MIN_ATTR
Declaration
public const string CONFIG_MIN_ATTR = "min"
Field Value
Type |
Description |
System.String |
|
CONFIG_REQUIRED_ATTR
Declaration
public const string CONFIG_REQUIRED_ATTR = "required"
Field Value
Type |
Description |
System.String |
|
CONFIG_SCHEMA_SECTION
Declaration
public const string CONFIG_SCHEMA_SECTION = "schema"
Field Value
Type |
Description |
System.String |
|
CONFIG_TITLE_ATTR
Declaration
public const string CONFIG_TITLE_ATTR = "title"
Field Value
Type |
Description |
System.String |
|
CONFIG_TYPE_ATTR
Declaration
public const string CONFIG_TYPE_ATTR = "type"
Field Value
Type |
Description |
System.String |
|
CONFIG_UPDATE_ATTR
Declaration
public const string CONFIG_UPDATE_ATTR = "update"
Field Value
Type |
Description |
System.String |
|
CONFIG_VALUE_SECTION
Declaration
public const string CONFIG_VALUE_SECTION = "value"
Field Value
Type |
Description |
System.String |
|
CONFIG_VISIBLE_ATTR
Declaration
public const string CONFIG_VISIBLE_ATTR = "visible"
Field Value
Type |
Description |
System.String |
|
Properties
ErlSchemaSections
Enumerates all Erl schemas
Declaration
public IEnumerable<IConfigSectionNode> ErlSchemaSections { get; }
Property Value
OriginalXMLContent
Declaration
public string OriginalXMLContent { get; }
Property Value
Type |
Description |
System.String |
|
Store
Declaration
public ErlDataStore Store { get; }
Property Value
Methods
ErlCRUDResponseToRowset(String, ErlList, Type)
Converts ErlCRUD response to CLR CRUD rowset
Declaration
public RowsetBase ErlCRUDResponseToRowset(string schemaName, ErlList erlData, Type tRow = null)
Parameters
Type |
Name |
Description |
System.String |
schemaName |
|
ErlList |
erlData |
|
System.Type |
tRow |
|
Returns
ErlSchemaToCRUDSchema(String, IConfigSectionNode)
Declaration
public static Schema ErlSchemaToCRUDSchema(string name, IConfigSectionNode erlSect)
Parameters
Returns
ErlTupleToRow(String, ErlTuple, Schema)
Maps ErlRow to CLR row supplied by schema, either Dynamic or TypedRow
Declaration
public Row ErlTupleToRow(string schemaName, ErlTuple tuple, Schema schema)
Parameters
Type |
Name |
Description |
System.String |
schemaName |
|
ErlTuple |
tuple |
|
Schema |
schema |
|
Returns
GetCRUDSchemaForName(String)
Declaration
public Schema GetCRUDSchemaForName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
GetErlSchemaSection(String)
Returns config section for named erl schema or null
Declaration
public IConfigSectionNode GetErlSchemaSection(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
RowToErlTuple(Row, Boolean)
Converts CLR row data into ErlTuple
Declaration
public ErlTuple RowToErlTuple(Row row, bool keysOnly = false)
Parameters
Type |
Name |
Description |
Row |
row |
|
System.Boolean |
keysOnly |
|
Returns
Extension Methods