C# 클래스 Griffin.Data.Sqlite.SqliteCommandBuilder

상속: Griffin.Data.Mapper.CommandBuilders.CommandBuilder
파일 보기 프로젝트 열기: jgauffin/Griffin.Framework 1 사용 예제들

공개 메소드들

메소드 설명
InsertCommand ( IDbCommand command, object entity ) : void

Generate an insert command, should end with a command that returns the insert identity.

Last statement will return @@identity.

Paging ( IDbCommand command, int pageNumber, int pageSize ) : void

Uses the SQLite - LIMIT [pageSize] OFFSET [pageNumber] LIMIT [no of rows] OFFSET [row num]

SqliteCommandBuilder ( ICrudEntityMapper mapper ) : System.Data

Initializes a new instance of the SqliteCommandBuilder class.

TruncateCommand ( IDbCommand command ) : void

Truncate all rows in a table

Will do a DELETE statement and reset the identity sequence generator.

메소드 상세

InsertCommand() 공개 메소드

Generate an insert command, should end with a command that returns the insert identity.
Last statement will return @@identity.
public InsertCommand ( IDbCommand command, object entity ) : void
command IDbCommand Command to add the query to
entity object Entity to store
리턴 void

Paging() 공개 메소드

Uses the SQLite - LIMIT [pageSize] OFFSET [pageNumber] LIMIT [no of rows] OFFSET [row num]
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

SqliteCommandBuilder() 공개 메소드

Initializes a new instance of the SqliteCommandBuilder class.
public SqliteCommandBuilder ( ICrudEntityMapper mapper ) : System.Data
mapper ICrudEntityMapper The mapper.
리턴 System.Data

TruncateCommand() 공개 메소드

Truncate all rows in a table
Will do a DELETE statement and reset the identity sequence generator.
public TruncateCommand ( IDbCommand command ) : void
command IDbCommand Command that will be executed after this method call
리턴 void