在目标对象中必须要具有一个属性有自定义属性DataFrameColumnAttribute
DataFramework
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Schema | 1 | 获取类型之中的属性列表 |
| Schema | 1 | 请注意:对于VisualBasic的My.Resources.Resources类型而言,里面的属性都是Friend Shared访问类型的, 所以在解析内部资源管理器对象的时候应该要特别注意binds参数值的设置, 因为这个参数默认是DataFramework.PublicProperty |
| DictionaryTable | 1 | 将对象之中的所有属性值都取出来以字符串的形式生成一个字典对象 |
| getOrCache | 1 | Helper for DataFramework.DictionaryTable()) |
| valueToString | 1 | 这个函数是为了提供转换的方法给字典对象DataFramework.StringBuilders |
| IsPrimitive | 1 | Is one of the primitive type in the hash DataFramework.StringBuilders? |
| GetPrimitiveTypes | 1 | Enumerates all pre-defined clr runtime primitive types. |
| IsCollection | 1 | |
| IsNumericCollection | 1 | Does the given type is any kind of numeric collection type? |
| IsNumericType | 1 | the given type is any of the CLR numeric primitive type? |
| IsIntegerType | 1 | |
| IsComplexType | 1 | 如果目标类型的属性之中值包含有基础类型,则是一个非复杂类型,反之包含任意一个非基础类型,则是一个复杂类型 |
| CreateObject | 1 | Convert target data object collection into a datatable for the data source of the DataGridView. |
| GetValue | 1 | Retrive data from a specific datatable object.(从目标数据表中获取数据) |
| DictionaryTable | 1 | |
| ValueTable | 1 | |
| IsNullable | 1 | |
| IsCollection | 1 | |
| CreateObject | 1 | |
| GetValue | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| Flags | 1 | Controls for PropertyAccess on PropertyInfo |
| StringParsers | 1 | Converts the .NET primitive types from string.(将字符串数据类型转换为其他的数据类型) |
| StringBuilders | 1 | Object Object methods. |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| PublicProperty | 2 | (instance) Public Property xxxxx As xxxxx |
| PublicShared | 2 | (statics) Public Shared Property xxxx As xxxx |
05 Members
获取类型之中的属性列表
这个函数不会缓存类型信息,因为参数组合条件过多
| Name | Description |
|---|---|
T |
| Name | Type | Description |
|---|---|---|
flag | PropertyAccess | - |
nonIndex | Boolean |
|
请注意:对于VisualBasic的My.Resources.Resources类型而言,里面的属性都是Friend Shared访问类型的, 所以在解析内部资源管理器对象的时候应该要特别注意binds参数值的设置, 因为这个参数默认是DataFramework.PublicProperty
| Name | Type | Description |
|---|---|---|
type | Type | - |
flag | PropertyAccess | - |
binds | BindingFlags | - |
nonIndex | Boolean |
|
``0, Boolean, Predicate(Of Object))将对象之中的所有属性值都取出来以字符串的形式生成一个字典对象
| Name | Description |
|---|---|
T |
| Name | Type | Description |
|---|---|---|
x | ``0 | - |
where | Boolean | 用来判断属性值是否应该被添加进入字典之中 |
Type)Helper for DataFramework.DictionaryTable()
| Name | Type | Description |
|---|---|---|
type | Type | - |
Object)这个函数是为了提供转换的方法给字典对象DataFramework.StringBuilders
| Name | Type | Description |
|---|---|---|
o | Object | 因为DataFramework.StringBuilders要求的是IStringBuilder, 即 |
Type, Boolean)Is one of the primitive type in the hash DataFramework.StringBuilders?
| Name | Type | Description |
|---|---|---|
type | Type | - |
autoCastEnum | Boolean | and also treate the enum type as primitive value?(enum is integer) |
Enumerates all pre-defined clr runtime primitive types.
Type)| Name | Description |
|---|---|
T | the data type of the element inside a data collection |
| Name | Type | Description |
|---|---|---|
type | Type | - |
Type)Does the given type is any kind of numeric collection type?
| Name | Type | Description |
|---|---|---|
type | Type | - |
Type, Boolean)the given type is any of the CLR numeric primitive type?
This function testing all of the possible numeric type at here
| Name | Type | Description |
|---|---|---|
type | Type | - |
includeComplex | Boolean | and also should treat the complex number as the primitive numeric type? |
Type, Boolean)| Name | Type | Description |
|---|---|---|
type | Type | - |
autoCastEnums | Boolean | and also treated the enum value as integer type? |
Type, EnumCastTo)如果目标类型的属性之中值包含有基础类型,则是一个非复杂类型,反之包含任意一个非基础类型,则是一个复杂类型
| Name | Type | Description |
|---|---|---|
type | Type | - |
enumCast | EnumCastTo | by default we treat the enum type as non-primitive type. |
IEnumerable(Of ``0))Convert target data object collection into a datatable for the data source of the DataGridView. (将目标对象集合转换为一个数据表对象,用作DataGridView控件的数据源)
| Name | Description |
|---|---|
T |
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of ``0) | - |
DataTable)Retrive data from a specific datatable object.(从目标数据表中获取数据)
| Name | Description |
|---|---|
T |
| Name | Type | Description |
|---|---|---|
dataTable | DataTable | - |
Controls for PropertyAccess on PropertyInfo
Converts the .NET primitive types from string.(将字符串数据类型转换为其他的数据类型)
Object Object methods.
在这个和Scripting命名空间下的基础类型的判断不一样 在这里只会判断.NET框架中的基础类型 在Scripting命名空间下的基础类型,是规定为所有包含有类型和字符串值之间的隐式转换的类型
(instance) Public Property xxxxx As xxxxx
T, Boolean, Predicate(Of Object))T)Type)Type)IEnumerable(Of T))DataTable)