Method | Description | |
---|---|---|
GetCachedProperties ( this type ) : System.Reflection.PropertyInfo[] |
从缓存中获得类的所有属性
|
|
GetColumnAttribute ( this prop ) : |
从缓存中获取属性的Column特性类对象
|
|
GetIdAttribute ( this prop ) : |
从缓存中获取属性的Id特性类对象
|
|
GetIdProperty ( this type ) : |
从缓存中获取类的ID属性,ID属性是指添加了Id特性的属性
|
|
GetManyToManyAttribute ( this prop ) : |
||
GetManyToOneAttribute ( this prop ) : |
||
GetOneToManyAttribute ( this prop ) : |
||
GetTableAttribute ( this type ) : |
获取缓存中的Table特性类对象
|
|
GetValue ( this member, object instance ) : object | ||
SetValue ( this member, object instance, object value ) : void | ||
SetValueSafely ( this prop, object entity, object value ) : void |
安全设置实体属性的值
|
public static GetCachedProperties ( this type ) : System.Reflection.PropertyInfo[] | ||
type | this | 要获取属性的类 |
return | System.Reflection.PropertyInfo[] |
public static GetColumnAttribute ( this prop ) : |
||
prop | this | 要获取特性的属性 |
return |
public static GetIdAttribute ( this prop ) : |
||
prop | this | 要获取特性的属性 |
return |
public static GetIdProperty ( this type ) : |
||
type | this | 要获取ID属性的类 |
return |
public static GetManyToManyAttribute ( this prop ) : |
||
prop | this | |
return |
public static GetManyToOneAttribute ( this prop ) : |
||
prop | this | |
return |
public static GetOneToManyAttribute ( this prop ) : |
||
prop | this | |
return |
public static GetTableAttribute ( this type ) : |
||
type | this | 要获取特性的类 |
return |
public static GetValue ( this member, object instance ) : object | ||
member | this | |
instance | object | |
return | object |
public static SetValue ( this member, object instance, object value ) : void | ||
member | this | |
instance | object | |
value | object | |
return | void |
public static SetValueSafely ( this prop, object entity, object value ) : void | ||
prop | this | 属性 |
entity | object | 要设置属性值的实体 |
value | object | 值 |
return | void |