Class ReasonStalledHeadingLinkRows
Heading link table for ReasonStalled, for MDO headers Collection of ReasonStalledHeadingLinkRow. Each element of the collection represents one row in the ReasonStalledHeadingLink table.
Inheritance
Implements
Inherited Members
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class ReasonStalledHeadingLinkRows : TableRowsBase, INestedPersist, IEnumerable<INestedPersist>, 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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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 ReasonStalledHeadingLinkRow given its index in the collection.
Declaration
public ReasonStalledHeadingLinkRow this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | Index of the ReasonStalledHeadingLinkRow in the collection |
Property Value
| Type | Description |
|---|---|
| ReasonStalledHeadingLinkRow |
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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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(ReasonStalledHeadingLinkRow)
Add one ReasonStalledHeadingLinkRow to the collection.
Declaration
public int Add(ReasonStalledHeadingLinkRow row)
Parameters
| Type | Name | Description |
|---|---|---|
| ReasonStalledHeadingLinkRow | row | An instance of ReasonStalledHeadingLinkRow to be added to the collection. |
Returns
| Type | Description |
|---|---|
| int | The index of the added ReasonStalledHeadingLinkRow. |
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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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 ReasonStalledHeadingLinkRow added to the collection.
Declaration
public ReasonStalledHeadingLinkRow AddNew()
Returns
| Type | Description |
|---|---|
| ReasonStalledHeadingLinkRow | A new instance of ReasonStalledHeadingLinkRow 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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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<ReasonStalledHeadingLinkRow>)
Add a range of ReasonStalledHeadingLinkRow to the collection.
Declaration
public ReasonStalledHeadingLinkRows AddRange(IEnumerable<ReasonStalledHeadingLinkRow> rows)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<ReasonStalledHeadingLinkRow> | rows |
Returns
| Type | Description |
|---|---|
| ReasonStalledHeadingLinkRows | The updated ReasonStalledHeadingLinkRows 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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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 ReasonStalledHeadingLinkRow
Declaration
protected override TableRowBase CreateChild()
Returns
| Type | Description |
|---|---|
| TableRowBase | New instance of ReasonStalledHeadingLinkRow |
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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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 ReasonStalledHeadingLinkRows object. This collection will contain no rows.
Declaration
public static ReasonStalledHeadingLinkRows CreateNew()
Returns
| Type | Description |
|---|---|
| ReasonStalledHeadingLinkRows | A new instance of the ReasonStalledHeadingLinkRows 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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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<ReasonStalledHeadingLinkRow>)
Apply the predicate to each element of the collection and return the first row that matches; if no match then return null
Declaration
public ReasonStalledHeadingLinkRow Find(Predicate<ReasonStalledHeadingLinkRow> condition)
Parameters
| Type | Name | Description |
|---|---|---|
| Predicate<ReasonStalledHeadingLinkRow> | condition |
Returns
| Type | Description |
|---|---|
| ReasonStalledHeadingLinkRow |
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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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<ReasonStalledHeadingLinkRow>)
Return a new collection that contains only those elements that match the condition. Elements are shared, not clones! of the original collection
Declaration
public ReasonStalledHeadingLinkRows FindAll(Predicate<ReasonStalledHeadingLinkRow> condition)
Parameters
| Type | Name | Description |
|---|---|---|
| Predicate<ReasonStalledHeadingLinkRow> | condition |
Returns
| Type | Description |
|---|---|
| ReasonStalledHeadingLinkRows |
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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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<ReasonStalledHeadingLinkRow>)
Method that iterates over all members and applies the action parameter to each of them
Declaration
public void ForEach(Action<ReasonStalledHeadingLinkRow> whatToDo)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<ReasonStalledHeadingLinkRow> | 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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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.
GetFromCustomSearchAsync(CustomSearch, CancellationToken)
Create a new instance of the ReasonStalledHeadingLinkRows 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 ReasonStalledHeadingLinkRow objects representing each row will be returned.
Declaration
public static Task<ReasonStalledHeadingLinkRows> GetFromCustomSearchAsync(ReasonStalledHeadingLinkRows.CustomSearch query, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ReasonStalledHeadingLinkRows.CustomSearch | query | The custom search to execute against the database |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<ReasonStalledHeadingLinkRows> | A new instance of the ReasonStalledHeadingLinkRows 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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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.
GetFromIdxHeadingIdAsync(int, CancellationToken)
Create a new instance of the ReasonStalledHeadingLinkRow object, by querying the database table via the index 'IDXReasonStalledHLHeading_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<ReasonStalledHeadingLinkRows> GetFromIdxHeadingIdAsync(int headingId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | headingId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<ReasonStalledHeadingLinkRows> | 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 ReasonStalledHeadingLink table. Non-unique indexes have corresponding inner classes and methods in the ReasonStalledHeadingLinkRows collection, since they may return more than one row.
GetFromIdxReasonStalledIdAsync(int, CancellationToken)
Create a new instance of the ReasonStalledHeadingLinkRow object, by querying the database table via the index 'IDXReasonStalledHLReasonstalled_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<ReasonStalledHeadingLinkRows> GetFromIdxReasonStalledIdAsync(int reasonStalledId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | reasonStalledId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<ReasonStalledHeadingLinkRows> | 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 ReasonStalledHeadingLink table. Non-unique indexes have corresponding inner classes and methods in the ReasonStalledHeadingLinkRows collection, since they may return more than one row.
GetFromReaderAsync(SoDataReader, ReasonStalledHeadingLinkTableInfo, CancellationToken)
Create a new instance of the ReasonStalledHeadingLinkRows 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 ReasonStalledHeadingLinkRow 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 Task<ReasonStalledHeadingLinkRows> GetFromReaderAsync(SoDataReader reader, ReasonStalledHeadingLinkTableInfo tableInfo, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| SoDataReader | reader | SoDataReader positioned to a valid database row. |
| ReasonStalledHeadingLinkTableInfo | tableInfo | ReasonStalledHeadingLinkTableInfo 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. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<ReasonStalledHeadingLinkRows> |
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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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(ReasonStalledHeadingLinkRow)
Removes the given ReasonStalledHeadingLinkRow from the collection
Declaration
public void Remove(ReasonStalledHeadingLinkRow row)
Parameters
| Type | Name | Description |
|---|---|---|
| ReasonStalledHeadingLinkRow | row | the ReasonStalledHeadingLinkRow 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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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()
Heading link table for ReasonStalled, for MDO headers Collection of ReasonStalledHeadingLinkRow. Each element of the collection represents one row in the ReasonStalledHeadingLink table.
Declaration
public ReasonStalledHeadingLinkRow[] ToArray()
Returns
| Type | Description |
|---|---|
| ReasonStalledHeadingLinkRow[] |
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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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 ReasonStalledHeadingLinkRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ReasonStalledHeadingLinkRows ReasonStalledHeadingLinkRows.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 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.