Class TicketRows
This table contains the tickets (requests) of the system. Its purpose should be evident. Collection of TicketRow. Each element of the collection represents one row in the Ticket table.
Inheritance
Implements
Inherited Members
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class TicketRows : 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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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 TicketRow given its index in the collection.
Declaration
public TicketRow this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
int | index | Index of the TicketRow in the collection |
Property Value
Type | Description |
---|---|
TicketRow |
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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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(TicketRow)
Add one TicketRow to the collection.
Declaration
public int Add(TicketRow row)
Parameters
Type | Name | Description |
---|---|---|
TicketRow | row | An instance of TicketRow to be added to the collection. |
Returns
Type | Description |
---|---|
int | The index of the added TicketRow. |
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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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 TicketRow added to the collection.
Declaration
public TicketRow AddNew()
Returns
Type | Description |
---|---|
TicketRow | A new instance of TicketRow 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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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<TicketRow>)
Add a range of TicketRow to the collection.
Declaration
public TicketRows AddRange(IEnumerable<TicketRow> rows)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TicketRow> | rows |
Returns
Type | Description |
---|---|
TicketRows | The updated TicketRows 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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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 TicketRow
Declaration
protected override TableRowBase CreateChild()
Returns
Type | Description |
---|---|
TableRowBase | New instance of TicketRow |
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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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 TicketRows object. This collection will contain no rows.
Declaration
public static TicketRows CreateNew()
Returns
Type | Description |
---|---|
TicketRows | A new instance of the TicketRows 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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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<TicketRow>)
Apply the predicate to each element of the collection and return the first row that matches; if no match then return null
Declaration
public TicketRow Find(Predicate<TicketRow> condition)
Parameters
Type | Name | Description |
---|---|---|
Predicate<TicketRow> | condition |
Returns
Type | Description |
---|---|
TicketRow |
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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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<TicketRow>)
Return a new collection that contains only those elements that match the condition. Elements are shared, not clones! of the original collection
Declaration
public TicketRows FindAll(Predicate<TicketRow> condition)
Parameters
Type | Name | Description |
---|---|---|
Predicate<TicketRow> | condition |
Returns
Type | Description |
---|---|
TicketRows |
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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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<TicketRow>)
Method that iterates over all members and applies the action parameter to each of them
Declaration
public void ForEach(Action<TicketRow> whatToDo)
Parameters
Type | Name | Description |
---|---|---|
Action<TicketRow> | 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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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 TicketRows 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 TicketRow objects representing each row will be returned.
Declaration
public static TicketRows GetFromCustomSearch(TicketRows.CustomSearch query)
Parameters
Type | Name | Description |
---|---|---|
TicketRows.CustomSearch | query | The custom search to execute against the database |
Returns
Type | Description |
---|---|
TicketRows | A new instance of the TicketRows 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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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.
GetFromIdxAlertTimeout(DateTime)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketAlert_timeout'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxAlertTimeout(DateTime alertTimeout)
Parameters
Type | Name | Description |
---|---|---|
DateTime | alertTimeout |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxCategory(int)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketCategory'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxCategory(int category)
Parameters
Type | Name | Description |
---|---|---|
int | category |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxConnectId(int)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketConnect_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxConnectId(int connectId)
Parameters
Type | Name | Description |
---|---|---|
int | connectId |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxCreatedAt(DateTime)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketCreated_at'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxCreatedAt(DateTime createdAt)
Parameters
Type | Name | Description |
---|---|---|
DateTime | createdAt |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxCreatedBy(int)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketCreated_by'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxCreatedBy(int createdBy)
Parameters
Type | Name | Description |
---|---|---|
int | createdBy |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxCustId(int)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketCust_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxCustId(int custId)
Parameters
Type | Name | Description |
---|---|---|
int | custId |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxDbiAgentId(int)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketDbi_agent_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxDbiAgentId(int dbiAgentId)
Parameters
Type | Name | Description |
---|---|---|
int | dbiAgentId |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxDbiKey(string)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketDbi_key'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxDbiKey(string dbiKey)
Parameters
Type | Name | Description |
---|---|---|
string | dbiKey |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxDbiLastModified(DateTime)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketDbi_last_modified'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxDbiLastModified(DateTime dbiLastModified)
Parameters
Type | Name | Description |
---|---|---|
DateTime | dbiLastModified |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxDbiLastSyncronized(DateTime)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketDbi_last_syncronized'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxDbiLastSyncronized(DateTime dbiLastSyncronized)
Parameters
Type | Name | Description |
---|---|---|
DateTime | dbiLastSyncronized |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxFilterId(int)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketFilter_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxFilterId(int filterId)
Parameters
Type | Name | Description |
---|---|---|
int | filterId |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxOrigCategory(int)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketOrig_category'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxOrigCategory(int origCategory)
Parameters
Type | Name | Description |
---|---|---|
int | origCategory |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxOrigPriority(int)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketOrig_priority'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxOrigPriority(int origPriority)
Parameters
Type | Name | Description |
---|---|---|
int | origPriority |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxOwnedBy(int)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketOwned_by'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxOwnedBy(int ownedBy)
Parameters
Type | Name | Description |
---|---|---|
int | ownedBy |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxPriority(int)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketPriority'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxPriority(int priority)
Parameters
Type | Name | Description |
---|---|---|
int | priority |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxReadStatus(TicketReadStatus)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketRead_status'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxReadStatus(TicketReadStatus readStatus)
Parameters
Type | Name | Description |
---|---|---|
TicketReadStatus | readStatus |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxStatus(TicketBaseStatus)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketStatus'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxStatus(TicketBaseStatus status)
Parameters
Type | Name | Description |
---|---|---|
TicketBaseStatus | status |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxTags(int[])
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketTags'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxTags(int[] tags)
Parameters
Type | Name | Description |
---|---|---|
int[] | tags |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxTicketStatus(int)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketTicket_status'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxTicketStatus(int ticketStatus)
Parameters
Type | Name | Description |
---|---|---|
int | ticketStatus |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromIdxTicketType(int)
Create a new instance of the TicketRow object, by querying the database table via the index 'IDXTicketTicket_type'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static TicketRows GetFromIdxTicketType(int ticketType)
Parameters
Type | Name | Description |
---|---|---|
int | ticketType |
Returns
Type | Description |
---|---|
TicketRows | 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 Ticket table. Non-unique indexes have corresponding inner classes and methods in the TicketRows collection, since they may return more than one row.
GetFromReader(SoDataReader, TicketTableInfo)
Create a new instance of the TicketRows 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 TicketRow 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 TicketRows GetFromReader(SoDataReader reader, TicketTableInfo tableInfo)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader | SoDataReader positioned to a valid database row. |
TicketTableInfo | tableInfo | TicketTableInfo 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 |
---|---|
TicketRows |
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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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(TicketRow)
Removes the given TicketRow from the collection
Declaration
public void Remove(TicketRow row)
Parameters
Type | Name | Description |
---|---|---|
TicketRow | row | the TicketRow 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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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 the tickets (requests) of the system. Its purpose should be evident. Collection of TicketRow. Each element of the collection represents one row in the Ticket table.
Declaration
public TicketRow[] ToArray()
Returns
Type | Description |
---|---|
TicketRow[] |
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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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 TicketRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) TicketRows TicketRows.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.