Class TypeSchemaNode
Information about a dataflow row column, or column schema, or unsupported member.
The same TypeSchemaNode
instance appears both as a node in the
SchemaNodeRoot
hierarchical tree (if populated at all), and in its
SchemaNodeList flat list.
Note that column and schema members must be public
.
Use one of the Create(Type) overloads to instantiate this class.
Inherited Members
Namespace: actionETL
Assembly: actionETL.dll
Syntax
public class TypeSchemaNode : SchemaNode
Properties
CopyPolicy
Information about if and how the type of the current node (e.g. a column or column schema)
is supported in dataflows and how to copy the member, or TypeSchemaCopyPolicy.None
if not set.
Also check CanRead and CanWrite to see
if member can be read and written.
Declaration
public TypeSchemaCopyPolicy CopyPolicy { get; }
Property Value
Type | Description |
---|---|
TypeSchemaCopyPolicy |
Descendants
Gets all descendants of this instance, if any, in the SchemaNodeRoot hierarchical tree.
Declaration
public IEnumerable<TypeSchemaNode> Descendants { get; }
Property Value
Type | Description |
---|---|
IEnumerable<TypeSchemaNode> |
FieldOrPropertyType
Gets the member type if this instance corresponds to a field or property, or null
if it
corresponds to the row class.
To access other field or property specific details, first cast the MemberInfo
to either
FieldInfo or PropertyInfo, e.g.:
var propertyInfo = memberInfo as PropertyInfo;
Declaration
public Type FieldOrPropertyType { get; }
Property Value
Type | Description |
---|---|
Type |
MemberInfo
Gets the member information if this instance corresponds to a field or property, or null
if it
corresponds to the row class.
To access field or property specific details, first cast the MemberInfo
to either
FieldInfo or PropertyInfo, e.g.:
var propertyInfo = memberInfo as PropertyInfo;
Declaration
public MemberInfo MemberInfo { get; }
Property Value
Type | Description |
---|---|
MemberInfo |
SchemaType
Gets the type of the row column, or column schema, or unsupported member.
Declaration
public Type SchemaType { get; }
Property Value
Type | Description |
---|---|
Type |
SchemaTypeDisplayName
Gets the schema type display name. See DisplayName(Type) for details.
Declaration
public string SchemaTypeDisplayName { get; }
Property Value
Type | Description |
---|---|
String |
SelfAndDescendants
Gets this instance itself, as well as all descendants of this instance, if any, in the SchemaNodeRoot hierarchical tree.
Declaration
public IEnumerable<TypeSchemaNode> SelfAndDescendants { get; }
Property Value
Type | Description |
---|---|
IEnumerable<TypeSchemaNode> |
Methods
GetMemberAccessExpression(Expression)
Creates an expression tree expression that accesses the member for the current node from the
root object, e.g. corresponding to Root.X.Y.ThisField
. The root object can be the direct parent
containing this instance, or any of its ancestors, except the row class.
This is useful when generating expression tree code for accessing a field or property in the row, typically for getting or setting its value.
Declaration
public MemberExpression GetMemberAccessExpression(Expression rootObjectExpression)
Parameters
Type | Name | Description |
---|---|---|
Expression | rootObjectExpression | The root object expression. |
Returns
Type | Description |
---|---|
MemberExpression | An expression for accessing the current node, usually used to get or set the field or property. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException |
|
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |