Class BulkUpdateResults
Inheritance
BulkUpdateResults
Assembly: SoDataBase.dll
Syntax
[ArchiveProvider("BulkUpdateResults", 715827882)]
public class BulkUpdateResults : IArchiveProvider, IArchiveProviderHasRows, IArchiveProviderHasColumns, IArchiveProviderHasEntities
Constructors
BulkUpdateResults()
Declaration
public BulkUpdateResults()
Fields
AllowOrderBy
Declaration
protected const bool AllowOrderBy = true
Field Value
Invisible
Declaration
protected const bool Invisible = false
Field Value
ProviderName
Declaration
public const string ProviderName = "BulkUpdateResults"
Field Value
Visible
Declaration
protected const bool Visible = true
Field Value
_colAssocId
Declaration
protected ArchiveColumnInfo _colAssocId
Field Value
_colAssocName
Declaration
protected ArchiveColumnInfo _colAssocName
Field Value
_colDate
Declaration
protected ArchiveColumnInfo _colDate
Field Value
_colDbRecordId
Declaration
protected ArchiveColumnInfo _colDbRecordId
Field Value
_colEntityType
Declaration
protected ArchiveColumnInfo _colEntityType
Field Value
_colResult
Declaration
protected ArchiveColumnInfo _colResult
Field Value
_colResultCount
Declaration
protected ArchiveColumnInfo _colResultCount
Field Value
Methods
Close()
Call this method after the last desired row has been read; this gives the provider the chance
to close and free any underlying queries
Declaration
GetAvailableColumns()
Get the list of columns handled by this provider
Declaration
public List<ArchiveColumnInfo> GetAvailableColumns()
Returns
GetAvailableEntities()
Get the list of entities supported by this provider
Declaration
public List<ArchiveRowTypeInfo> GetAvailableEntities()
Returns
GetReader(string)
Start the reader and return an IDataReader (which, as we remember, also inherits IDataRecord for access to
individual data fields). This provides an alternative, more generic and more standards-based interface to
data. Use either GetRows or GetReader on any particular archive provider instance.
Declaration
public IDataReader GetReader(string i_Options)
Parameters
Type |
Name |
Description |
string |
i_Options |
|
Returns
Get additional information about the result, such as row count or other optional items. This method should be called some time after
GetRows, but before Close. Delaying calls to this method as long as possible will give its (asynchronous) internal counterpart
more time to complete and lessen the response-time impact of calling it.
Declaration
public ArchiveResultInformation GetResultInformation()
Returns
GetRows(string)
Start the query and return an iterator. The .Current property will be a valid ArchiveRow containing one row, as long as
a previous call to .MoveNext returned true. This is the standard semantics for an iterator. Do remember to call Close afterwards,
to clean up all resources.
Declaration
public IEnumerable<ArchiveRow> GetRows(string i_Options)
Parameters
Type |
Name |
Description |
string |
i_Options |
|
Returns
Type |
Description |
IEnumerable<ArchiveRow> |
An iterator, following the usual conventions. MoveNext will return false when there are no more rows, which can either be because the result set is exhausted, or because the page size has been reached
|
SetDesiredColumns(params string[])
Set which columns should actually be returned, must be a subset of the GetAvailableColumns result
Declaration
public void SetDesiredColumns(params string[] i_Columns)
Parameters
Type |
Name |
Description |
string[] |
i_Columns |
|
SetDesiredEntities(params string[])
Declaration
public void SetDesiredEntities(params string[] i_Entities)
Parameters
Type |
Name |
Description |
string[] |
i_Entities |
|
SetOrderBy(params ArchiveOrderByInfo[])
Declaration
public void SetOrderBy(params ArchiveOrderByInfo[] i_OrderBys)
Parameters
SetPagingInfo(int, int)
Set the paging properties of the provider. The default is to fetch page zero, of one thousand (1000) rows. A more reasonable page size
is probably around 100. Note that the query processing strategy may change for very large pages (more than 1000) and give significantly
longer response times. Performance is improved by setting the page size low, as long as you don't set it lower than what you
realistically expect to need (fetching multiple pages is more expensive than fetching one).
Declaration
public void SetPagingInfo(int i_PageSize, int i_PageNumber)
Parameters
Type |
Name |
Description |
int |
i_PageSize |
|
int |
i_PageNumber |
|
SetRestriction(params ArchiveRestrictionInfo[])
Set query restriction globally, supersedes previous restrictions
Declaration
public bool SetRestriction(params ArchiveRestrictionInfo[] i_Restrictions)
Parameters
Returns
Type |
Description |
bool |
true if at least one of the restrictions matched one of the available columns of the provider
|
Implements
Extension Methods