Class GenericTypeInfo

Inheritance
object
GenericTypeInfo
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
    public class GenericTypeInfo

Constructors

GenericTypeInfo(Type)

Declaration
    public GenericTypeInfo(Type type)
Parameters
TypeNameDescription
System.Typetype

Properties

AggregateColumnAttributes

Declaration
    public List<AggregateColumn> AggregateColumnAttributes { get; set; }
Property Value
TypeDescription
System.Collections.Generic.List<T><AggregateColumn>

ColumnMapAttributes

Declaration
    public List<ColumnMap> ColumnMapAttributes { get; set; }
Property Value
TypeDescription
System.Collections.Generic.List<T><ColumnMap>

CompareColumnAttributes

Declaration
    public List<CompareColumn> CompareColumnAttributes { get; set; }
Property Value
TypeDescription
System.Collections.Generic.List<T><CompareColumn>

DeleteColumnAttributes

Declaration
    public List<DeleteColumn> DeleteColumnAttributes { get; set; }
Property Value
TypeDescription
System.Collections.Generic.List<T><DeleteColumn>

DistinctColumnAttributes

Declaration
    public List<DistinctColumn> DistinctColumnAttributes { get; set; }
Property Value
TypeDescription
System.Collections.Generic.List<T><DistinctColumn>

GroupColumnAttributes

Declaration
    public List<GroupColumn> GroupColumnAttributes { get; set; }
Property Value
TypeDescription
System.Collections.Generic.List<T><GroupColumn>

IdColumnAttributes

Declaration
    public List<IdColumn> IdColumnAttributes { get; set; }
Property Value
TypeDescription
System.Collections.Generic.List<T><IdColumn>

IsArray

Indicates if the type is an array (e.g. string[])

Declaration
    public bool IsArray { get; }
Property Value
TypeDescription
bool

IsDynamic

Indicates if the type is an ExpandoObject

Declaration
    public bool IsDynamic { get; }
Property Value
TypeDescription
bool

IsPoco

Indicates if the type is an strong type object (Plain old CLR object)

Declaration
    public bool IsPoco { get; }
Property Value
TypeDescription
bool

KeyColumnAttributes

Declaration
    public List<KeyColumn> KeyColumnAttributes { get; set; }
Property Value
TypeDescription
System.Collections.Generic.List<T><KeyColumn>

MatchColumnAttributes

Declaration
    public List<MatchColumn> MatchColumnAttributes { get; set; }
Property Value
TypeDescription
System.Collections.Generic.List<T><MatchColumn>

Properties

Property info of the type

Declaration
    public List<PropertyInfo> Properties { get; }
Property Value
TypeDescription
System.Collections.Generic.List<T><System.Reflection.PropertyInfo>

PropertiesByName

Property info of the type by property name

Declaration
    public Dictionary<string, PropertyInfo> PropertiesByName { get; }
Property Value
TypeDescription
System.Collections.Generic.Dictionary<TKey, TValue><string, System.Reflection.PropertyInfo>

PropertyNames

Property names of the type

Declaration
    public List<string> PropertyNames { get; }
Property Value
TypeDescription
System.Collections.Generic.List<T><string>

RenameColumnAttributes

Declaration
    public List<RenameColumn> RenameColumnAttributes { get; set; }
Property Value
TypeDescription
System.Collections.Generic.List<T><RenameColumn>

RetrieveColumnAttributes

Declaration
    public List<RetrieveColumn> RetrieveColumnAttributes { get; set; }
Property Value
TypeDescription
System.Collections.Generic.List<T><RetrieveColumn>

SelectColumnAttributes

Declaration
    public List<SelectColumn> SelectColumnAttributes { get; set; }
Property Value
TypeDescription
System.Collections.Generic.List<T><SelectColumn>

UnderlyingPropType

Declaration
    public Dictionary<PropertyInfo, Type> UnderlyingPropType { get; }
Property Value
TypeDescription
System.Collections.Generic.Dictionary<TKey, TValue><System.Reflection.PropertyInfo, System.Type>

UpdateColumnAttributes

Declaration
    public List<UpdateColumn> UpdateColumnAttributes { get; set; }
Property Value
TypeDescription
System.Collections.Generic.List<T><UpdateColumn>

ValueGeneratedColumns

Declaration
    public List<ValueGenerationColumn> ValueGeneratedColumns { get; set; }
Property Value
TypeDescription
System.Collections.Generic.List<T><ValueGenerationColumn>

Methods

GatherTypeInfo(AttributeType)

Declaration
    public GenericTypeInfo GatherTypeInfo(AttributeType propertyAttributes = AttributeType.None)
Parameters
TypeNameDescription
AttributeTypepropertyAttributes
Returns
TypeDescription
GenericTypeInfo

IsNumericType(Type)

Determines if a type is numeric. Nullable numeric types are considered numeric.

Declaration
    public static bool IsNumericType(Type type)
Parameters
TypeNameDescription
System.Typetype
Returns
TypeDescription
bool
Remarks

Boolean is not considered numeric. http://stackoverflow.com/a/5182747/172132

RetrieveAdditionalTypeInfo(PropertyInfo, int)

Declaration
    protected virtual void RetrieveAdditionalTypeInfo(PropertyInfo propInfo, int currentIndex)
Parameters
TypeNameDescription
System.Reflection.PropertyInfopropInfo
intcurrentIndex

SetValueOrThrow(PropertyInfo, object, object)

Declaration
    public void SetValueOrThrow(PropertyInfo propInfo, object obj, object value)
Parameters
TypeNameDescription
System.Reflection.PropertyInfopropInfo
objectobj
objectvalue

SetValueOrThrow(string, object, object)

Declaration
    public void SetValueOrThrow(string propName, object obj, object value)
Parameters
TypeNameDescription
stringpropName
objectobj
objectvalue

TrySetValue(PropertyInfo, object, object)

Declaration
    public void TrySetValue(PropertyInfo propInfo, object obj, object value)
Parameters
TypeNameDescription
System.Reflection.PropertyInfopropInfo
objectobj
objectvalue

TrySetValue(string, object, object)

Declaration
    public void TrySetValue(string propName, object obj, object value)
Parameters
TypeNameDescription
stringpropName
objectobj
objectvalue