[This is preliminary documentation and is subject to change.]
Convert Row to a hierarchical term that corresponds to the row's schema.
The Erlang term is in the form:
{SchemaName::atom(), [{FieldName::atom(), Value}]}.
{SchemaName::atom(), [{FieldName::atom(), Value}]}.
Namespace: NFX.Erlang.DataAccessAssembly: NFX.Erlang (in NFX.Erlang.dll) Version: 3.0.0.1 (3.0.0.1)
public static IErlObject ToErlObject(
this Row row,
string targetName = null,
string schemaName = null,
bool outputDefVals = true
)
public static IErlObject ToErlObject(
this Row row,
string targetName = null,
string schemaName = null,
bool outputDefVals = true
)
<ExtensionAttribute>
Public Shared Function ToErlObject (
row As Row,
Optional targetName As String = Nothing,
Optional schemaName As String = Nothing,
Optional outputDefVals As Boolean = true
) As IErlObject
<ExtensionAttribute>
Public Shared Function ToErlObject (
row As Row,
Optional targetName As String = Nothing,
Optional schemaName As String = Nothing,
Optional outputDefVals As Boolean = true
) As IErlObject
public:
[ExtensionAttribute]
static IErlObject^ ToErlObject(
Row^ row,
String^ targetName = nullptr,
String^ schemaName = nullptr,
bool outputDefVals = true
)
public:
[ExtensionAttribute]
static IErlObject^ ToErlObject(
Row^ row,
String^ targetName = nullptr,
String^ schemaName = nullptr,
bool outputDefVals = true
)
static member ToErlObject :
row : Row *
?targetName : string *
?schemaName : string *
?outputDefVals : bool
(* Defaults:
let _targetName = defaultArg targetName null
let _schemaName = defaultArg schemaName null
let _outputDefVals = defaultArg outputDefVals true
*)
-> IErlObject
static member ToErlObject :
row : Row *
?targetName : string *
?schemaName : string *
?outputDefVals : bool
(* Defaults:
let _targetName = defaultArg targetName null
let _schemaName = defaultArg schemaName null
let _outputDefVals = defaultArg outputDefVals true
*)
-> IErlObject
Parameters
- row
- Type: NFX.DataAccess.CRUD Row
Row to convert to Erlang object
- targetName (Optional)
- Type:
System String
Target to use to lookup field attributes in the row
- schemaName (Optional)
- Type:
System String
Alternative schema name to use for the outermost name of the schema in the output.
- outputDefVals (Optional)
- Type:
System Boolean
When false no field values are included in output if they are equal to default values
Return Value
Type:
IErlObjectUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Row. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).