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