C# 클래스 NSoft.NFramework.Data.AdoRepositoryEx

파일 보기 프로젝트 열기: debop/NFramework

공개 메소드들

메소드 설명
LoadDataSet ( this repository, DbCommand cmd, DataSet targetDataSet, string tableNames ) : void

Command를 실행시켜, 결과 셋을 DataSet에 저장한다.
여러 ResultSet을 반환하는 경우 각각의 ResultSet에 대응하는 TableName을 제공해야 합니다.

UpdateDataSet ( this repository, DataSet dataSet, string tableName, DbCommand insertCommand = null, DbCommand updateCommand = null, DbCommand deleteCommand = null, UpdateBehavior updateBehavior = UpdateBehavior.Transactional, int updateBatchSize = Int32.MaxValue ) : int

Update DataSet with commands

메소드 상세

LoadDataSet() 공개 정적인 메소드

Command를 실행시켜, 결과 셋을 DataSet에 저장한다.
여러 ResultSet을 반환하는 경우 각각의 ResultSet에 대응하는 TableName을 제공해야 합니다.
public static LoadDataSet ( this repository, DbCommand cmd, DataSet targetDataSet, string tableNames ) : void
repository this IAdoRepository 인스턴스
cmd System.Data.Common.DbCommand 실행할 Command
targetDataSet System.Data.DataSet
tableNames string
리턴 void

UpdateDataSet() 공개 정적인 메소드

Update DataSet with commands
public static UpdateDataSet ( this repository, DataSet dataSet, string tableName, DbCommand insertCommand = null, DbCommand updateCommand = null, DbCommand deleteCommand = null, UpdateBehavior updateBehavior = UpdateBehavior.Transactional, int updateBatchSize = Int32.MaxValue ) : int
repository this IAdoRepository 인스턴스
dataSet System.Data.DataSet DataSet to update
tableName string table name to update
insertCommand System.Data.Common.DbCommand command to insert
updateCommand System.Data.Common.DbCommand command to update
deleteCommand System.Data.Common.DbCommand command to delete
updateBehavior UpdateBehavior Behavior to update
updateBatchSize int batch size to update
리턴 int