C# Class NSoft.NFramework.Data.AdoRepositoryEx

Exibir arquivo Open project: debop/NFramework

Public Methods

Method Description
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

Method Details

LoadDataSet() public static method

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
return void

UpdateDataSet() public static method

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
return int