Class TravelGeneratedTransactionRows
Record of all generated replication data files from this database (*.dwn files from mother database to child, *.up from child database to mother) Collection of TravelGeneratedTransactionRow. Each element of the collection represents one row in the TravelGeneratedTransaction table.
Inheritance
Implements
Inherited Members
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class TravelGeneratedTransactionRows : TableRowsBase, INestedPersist, IEnumerable<INestedPersist>, ISoCollection, INotifyCollectionChanged, IBindingList, IList, ICollection, IEnumerable
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Properties
this[int]
Get a TravelGeneratedTransactionRow given its index in the collection.
Declaration
public TravelGeneratedTransactionRow this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
int | index | Index of the TravelGeneratedTransactionRow in the collection |
Property Value
Type | Description |
---|---|
TravelGeneratedTransactionRow |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Methods
Add(TravelGeneratedTransactionRow)
Add one TravelGeneratedTransactionRow to the collection.
Declaration
public int Add(TravelGeneratedTransactionRow row)
Parameters
Type | Name | Description |
---|---|---|
TravelGeneratedTransactionRow | row | An instance of TravelGeneratedTransactionRow to be added to the collection. |
Returns
Type | Description |
---|---|
int | The index of the added TravelGeneratedTransactionRow. |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
AddNew()
Add a new instance of TravelGeneratedTransactionRow added to the collection.
Declaration
public TravelGeneratedTransactionRow AddNew()
Returns
Type | Description |
---|---|
TravelGeneratedTransactionRow | A new instance of TravelGeneratedTransactionRow added to the collection. |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
AddRange(IEnumerable<TravelGeneratedTransactionRow>)
Add a range of TravelGeneratedTransactionRow to the collection.
Declaration
public TravelGeneratedTransactionRows AddRange(IEnumerable<TravelGeneratedTransactionRow> rows)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TravelGeneratedTransactionRow> | rows |
Returns
Type | Description |
---|---|
TravelGeneratedTransactionRows | The updated TravelGeneratedTransactionRows collection object. |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
CreateChild()
Create a new instance of TravelGeneratedTransactionRow
Declaration
protected override TableRowBase CreateChild()
Returns
Type | Description |
---|---|
TableRowBase | New instance of TravelGeneratedTransactionRow |
Overrides
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
CreateNew()
Create a new instance of the TravelGeneratedTransactionRows object. This collection will contain no rows.
Declaration
public static TravelGeneratedTransactionRows CreateNew()
Returns
Type | Description |
---|---|
TravelGeneratedTransactionRows | A new instance of the TravelGeneratedTransactionRows object. |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Find(Predicate<TravelGeneratedTransactionRow>)
Apply the predicate to each element of the collection and return the first row that matches; if no match then return null
Declaration
public TravelGeneratedTransactionRow Find(Predicate<TravelGeneratedTransactionRow> condition)
Parameters
Type | Name | Description |
---|---|---|
Predicate<TravelGeneratedTransactionRow> | condition |
Returns
Type | Description |
---|---|
TravelGeneratedTransactionRow |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
FindAll(Predicate<TravelGeneratedTransactionRow>)
Return a new collection that contains only those elements that match the condition. Elements are shared, not clones! of the original collection
Declaration
public TravelGeneratedTransactionRows FindAll(Predicate<TravelGeneratedTransactionRow> condition)
Parameters
Type | Name | Description |
---|---|---|
Predicate<TravelGeneratedTransactionRow> | condition |
Returns
Type | Description |
---|---|
TravelGeneratedTransactionRows |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
ForEach(Action<TravelGeneratedTransactionRow>)
Method that iterates over all members and applies the action parameter to each of them
Declaration
public void ForEach(Action<TravelGeneratedTransactionRow> whatToDo)
Parameters
Type | Name | Description |
---|---|---|
Action<TravelGeneratedTransactionRow> | whatToDo |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
GetFromCustomSearch(CustomSearch)
Create a new instance of the TravelGeneratedTransactionRows object, and populate it with data from a custom search. If the search returns no results, an empty collection will be returned; if the result contains rows, a collection of TravelGeneratedTransactionRow objects representing each row will be returned.
Declaration
public static TravelGeneratedTransactionRows GetFromCustomSearch(TravelGeneratedTransactionRows.CustomSearch query)
Parameters
Type | Name | Description |
---|---|---|
TravelGeneratedTransactionRows.CustomSearch | query | The custom search to execute against the database |
Returns
Type | Description |
---|---|
TravelGeneratedTransactionRows | A new instance of the TravelGeneratedTransactionRows object, reflecting the result of the query. |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
GetFromIdxTransmissionnumber(uint)
Create a new instance of the TravelGeneratedTransactionRow object, by querying the database table via the index 'ITrnumTrav_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TravelGeneratedTransactionRows GetFromIdxTransmissionnumber(uint transmissionnumber)
Parameters
Type | Name | Description |
---|---|---|
uint | transmissionnumber |
Returns
Type | Description |
---|---|
TravelGeneratedTransactionRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the TravelGeneratedTransaction table. Non-unique indexes have corresponding inner classes and methods in the TravelGeneratedTransactionRows collection, since they may return more than one row.
GetFromIdxTransmissionnumberTravelId(uint, int)
Create a new instance of the TravelGeneratedTransactionRow object, by querying the database table via the index 'ITrnumTrav_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TravelGeneratedTransactionRows GetFromIdxTransmissionnumberTravelId(uint transmissionnumber, int travelId)
Parameters
Type | Name | Description |
---|---|---|
uint | transmissionnumber | |
int | travelId |
Returns
Type | Description |
---|---|
TravelGeneratedTransactionRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the TravelGeneratedTransaction table. Non-unique indexes have corresponding inner classes and methods in the TravelGeneratedTransactionRows collection, since they may return more than one row.
GetFromIdxTravelId(int)
Create a new instance of the TravelGeneratedTransactionRow object, by querying the database table via the index 'IDXTrgtrTrav_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TravelGeneratedTransactionRows GetFromIdxTravelId(int travelId)
Parameters
Type | Name | Description |
---|---|---|
int | travelId |
Returns
Type | Description |
---|---|
TravelGeneratedTransactionRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the TravelGeneratedTransaction table. Non-unique indexes have corresponding inner classes and methods in the TravelGeneratedTransactionRows collection, since they may return more than one row.
GetFromReader(SoDataReader, TravelGeneratedTransactionTableInfo)
Create a new instance of the TravelGeneratedTransactionRows object, and populate it with data from a reader. If the search returns no results, an empty collection will be returned; if the result contains rows, a collection of TravelGeneratedTransactionRow objects representing each row will be returned.
Note that the internal logic starts by calling reader.Read(), which is correct if you hand the method the result of an ExecuteReader(), but if the reader has already been advanced one or more rows, the current row will be skipped and collection population will start with the next row.Declaration
public static TravelGeneratedTransactionRows GetFromReader(SoDataReader reader, TravelGeneratedTransactionTableInfo tableInfo)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader | SoDataReader positioned to a valid database row. |
TravelGeneratedTransactionTableInfo | tableInfo | TravelGeneratedTransactionTableInfo instance used in the query that is the source of the reader. The fields used from the reader will be those owned by this tableinfo object. |
Returns
Type | Description |
---|---|
TravelGeneratedTransactionRows |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Remove(TravelGeneratedTransactionRow)
Removes the given TravelGeneratedTransactionRow from the collection
Declaration
public void Remove(TravelGeneratedTransactionRow row)
Parameters
Type | Name | Description |
---|---|---|
TravelGeneratedTransactionRow | row | the TravelGeneratedTransactionRow to be removed |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
ToArray()
Record of all generated replication data files from this database (*.dwn files from mother database to child, *.up from child database to mother) Collection of TravelGeneratedTransactionRow. Each element of the collection represents one row in the TravelGeneratedTransaction table.
Declaration
public TravelGeneratedTransactionRow[] ToArray()
Returns
Type | Description |
---|---|
TravelGeneratedTransactionRow[] |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
ToString()
For debugging: Number of members, and the first (up to) 5 items
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type TravelGeneratedTransactionRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TravelGeneratedTransactionRows TravelGeneratedTransactionRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.