Метод | Описание | |
---|---|---|
CreateInstance ( IDataReader reader ) : object |
Creates a new instance of the type populated with the values from the specified IDataReader.
|
|
GetColumnInfo ( string columnName ) : |
Gets the column information for the column with the specified name.
|
|
GetIdentifierValue ( object instance ) : object |
Gets the property value for the object identifier.
|
|
GetInsertValues ( object instance ) : SqlArgument[] |
Gets the insert values for the specified instance.
|
|
GetUpdateValues ( object instance ) : SqlArgument[] |
Gets the update values for the specified instance.
|
|
HasDefaultIdentifierValue ( object instance ) : bool |
Determines whether the specified instance has the default identifier value.
|
|
IsDefaultIdentifier ( object identifier ) : bool |
Determines whether the specified identifier value is the default identifier value.
|
|
PocoObjectInfo ( |
Initialises a new instance of the PocoObjectInfo class.
|
|
SetIdentifierValue ( object instance, object identifier ) : void |
Sets the property value for the object identifier to the supplied value.
|
|
VerifyInstanceForInsert ( object instance ) : void |
Verifies the instance can be inserted.
|
Метод | Описание | |
---|---|---|
VerifyIdentifierMapped ( ) : void | ||
VerifyInstanceIsCorrectTypeForThisObjectInfo ( object instance ) : void |
public CreateInstance ( IDataReader reader ) : object | ||
reader | IDataReader | The IDataReader containing the values to build the instance from. |
Результат | object |
public GetColumnInfo ( string columnName ) : |
||
columnName | string | Name of the column. |
Результат |
public GetIdentifierValue ( object instance ) : object | ||
instance | object | The instance to retrieve the value from. |
Результат | object |
public GetInsertValues ( object instance ) : SqlArgument[] | ||
instance | object | The instance to retrieve the values from. |
Результат | SqlArgument[] |
public GetUpdateValues ( object instance ) : SqlArgument[] | ||
instance | object | The instance to retrieve the values from. |
Результат | SqlArgument[] |
public HasDefaultIdentifierValue ( object instance ) : bool | ||
instance | object | The instance to verify. |
Результат | bool |
public IsDefaultIdentifier ( object identifier ) : bool | ||
identifier | object | The identifier value to verify. |
Результат | bool |
public PocoObjectInfo ( |
||
forType | The type the object info relates to. | |
tableInfo | The table info. | |
Результат | System |
public SetIdentifierValue ( object instance, object identifier ) : void | ||
instance | object | The instance to set the value for. |
identifier | object | The value to set as the identifier property. |
Результат | void |
public VerifyInstanceForInsert ( object instance ) : void | ||
instance | object | The instance to verify. |
Результат | void |