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