Class ConfigurableScreenAppliesToRows
Mapping between recipes in scil and chosen type of data (appliesToKey) to differ layouts on Collection of ConfigurableScreenAppliesToRow. Each element of the collection represents one row in the ConfigurableScreenAppliesTo table.
Inheritance
Implements
Inherited Members
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class ConfigurableScreenAppliesToRows : 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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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 ConfigurableScreenAppliesToRow given its index in the collection.
Declaration
public ConfigurableScreenAppliesToRow this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
int | index | Index of the ConfigurableScreenAppliesToRow in the collection |
Property Value
Type | Description |
---|---|
ConfigurableScreenAppliesToRow |
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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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(ConfigurableScreenAppliesToRow)
Add one ConfigurableScreenAppliesToRow to the collection.
Declaration
public int Add(ConfigurableScreenAppliesToRow row)
Parameters
Type | Name | Description |
---|---|---|
ConfigurableScreenAppliesToRow | row | An instance of ConfigurableScreenAppliesToRow to be added to the collection. |
Returns
Type | Description |
---|---|
int | The index of the added ConfigurableScreenAppliesToRow. |
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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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 ConfigurableScreenAppliesToRow added to the collection.
Declaration
public ConfigurableScreenAppliesToRow AddNew()
Returns
Type | Description |
---|---|
ConfigurableScreenAppliesToRow | A new instance of ConfigurableScreenAppliesToRow 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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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<ConfigurableScreenAppliesToRow>)
Add a range of ConfigurableScreenAppliesToRow to the collection.
Declaration
public ConfigurableScreenAppliesToRows AddRange(IEnumerable<ConfigurableScreenAppliesToRow> rows)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ConfigurableScreenAppliesToRow> | rows |
Returns
Type | Description |
---|---|
ConfigurableScreenAppliesToRows | The updated ConfigurableScreenAppliesToRows 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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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 ConfigurableScreenAppliesToRow
Declaration
protected override TableRowBase CreateChild()
Returns
Type | Description |
---|---|
TableRowBase | New instance of ConfigurableScreenAppliesToRow |
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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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 ConfigurableScreenAppliesToRows object. This collection will contain no rows.
Declaration
public static ConfigurableScreenAppliesToRows CreateNew()
Returns
Type | Description |
---|---|
ConfigurableScreenAppliesToRows | A new instance of the ConfigurableScreenAppliesToRows 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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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<ConfigurableScreenAppliesToRow>)
Apply the predicate to each element of the collection and return the first row that matches; if no match then return null
Declaration
public ConfigurableScreenAppliesToRow Find(Predicate<ConfigurableScreenAppliesToRow> condition)
Parameters
Type | Name | Description |
---|---|---|
Predicate<ConfigurableScreenAppliesToRow> | condition |
Returns
Type | Description |
---|---|
ConfigurableScreenAppliesToRow |
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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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<ConfigurableScreenAppliesToRow>)
Return a new collection that contains only those elements that match the condition. Elements are shared, not clones! of the original collection
Declaration
public ConfigurableScreenAppliesToRows FindAll(Predicate<ConfigurableScreenAppliesToRow> condition)
Parameters
Type | Name | Description |
---|---|---|
Predicate<ConfigurableScreenAppliesToRow> | condition |
Returns
Type | Description |
---|---|
ConfigurableScreenAppliesToRows |
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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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<ConfigurableScreenAppliesToRow>)
Method that iterates over all members and applies the action parameter to each of them
Declaration
public void ForEach(Action<ConfigurableScreenAppliesToRow> whatToDo)
Parameters
Type | Name | Description |
---|---|---|
Action<ConfigurableScreenAppliesToRow> | 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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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 ConfigurableScreenAppliesToRows 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 ConfigurableScreenAppliesToRow objects representing each row will be returned.
Declaration
public static ConfigurableScreenAppliesToRows GetFromCustomSearch(ConfigurableScreenAppliesToRows.CustomSearch query)
Parameters
Type | Name | Description |
---|---|---|
ConfigurableScreenAppliesToRows.CustomSearch | query | The custom search to execute against the database |
Returns
Type | Description |
---|---|
ConfigurableScreenAppliesToRows | A new instance of the ConfigurableScreenAppliesToRows 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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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.
GetFromReader(SoDataReader, ConfigurableScreenAppliesToTableInfo)
Create a new instance of the ConfigurableScreenAppliesToRows 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 ConfigurableScreenAppliesToRow 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 ConfigurableScreenAppliesToRows GetFromReader(SoDataReader reader, ConfigurableScreenAppliesToTableInfo tableInfo)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader | SoDataReader positioned to a valid database row. |
ConfigurableScreenAppliesToTableInfo | tableInfo | ConfigurableScreenAppliesToTableInfo 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 |
---|---|
ConfigurableScreenAppliesToRows |
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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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(ConfigurableScreenAppliesToRow)
Removes the given ConfigurableScreenAppliesToRow from the collection
Declaration
public void Remove(ConfigurableScreenAppliesToRow row)
Parameters
Type | Name | Description |
---|---|---|
ConfigurableScreenAppliesToRow | row | the ConfigurableScreenAppliesToRow 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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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()
Mapping between recipes in scil and chosen type of data (appliesToKey) to differ layouts on Collection of ConfigurableScreenAppliesToRow. Each element of the collection represents one row in the ConfigurableScreenAppliesTo table.
Declaration
public ConfigurableScreenAppliesToRow[] ToArray()
Returns
Type | Description |
---|---|
ConfigurableScreenAppliesToRow[] |
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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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 ConfigurableScreenAppliesToRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ConfigurableScreenAppliesToRows ConfigurableScreenAppliesToRows.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.