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