Метод | Описание | |
---|---|---|
CommandBuilder ( ICrudEntityMapper mapper ) : System |
Initializes a new instance of the CommandBuilder class.
|
|
DeleteCommand ( IDbCommand command, object entity ) : void |
Modifies the command to execute a DELETE statement
|
|
InsertCommand ( IDbCommand command, object entity ) : void |
Generate an insert command, should end with a command that returns the insert identity.
|
|
Paging ( IDbCommand command, int pageNumber, int pageSize ) : void |
Modify SQL statement so that the result is paged.
|
|
TruncateCommand ( IDbCommand command ) : void |
Truncate all rows in a table Will do a DELETE statement |
|
UpdateCommand ( IDbCommand command, object entity ) : void |
Create an update query from the entity.
|
public CommandBuilder ( ICrudEntityMapper mapper ) : System | ||
mapper | ICrudEntityMapper | The mapper. |
Результат | System |
public DeleteCommand ( IDbCommand command, object entity ) : void | ||
command | IDbCommand | Command that will be executed after this method call |
entity | object | Only primary key properties are used in the WHERE clause |
Результат | void |
public InsertCommand ( IDbCommand command, object entity ) : void | ||
command | IDbCommand | Command to add the query to |
entity | object | Entity to store |
Результат | void |
public Paging ( IDbCommand command, int pageNumber, int pageSize ) : void | ||
command | IDbCommand | Command to modify |
pageNumber | int | One based index |
pageSize | int | Items per page. |
Результат | void |
public TruncateCommand ( IDbCommand command ) : void | ||
command | IDbCommand | Command that will be executed after this method call |
Результат | void |
public UpdateCommand ( IDbCommand command, object entity ) : void | ||
command | IDbCommand | Command to modify |
entity | object | Entity to update |
Результат | void |