Class AppointmentRows
Tasks, appointments, followups, phone calls; and documents (document_id != 0). An appointment always has a corresponding record in VisibleFor specifying who may see this. Collection of AppointmentRow. Each element of the collection represents one row in the Appointment table.
Inheritance
Implements
Inherited Members
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class AppointmentRows : TableRowsBase, INestedPersist, IEnumerable<INestedPersist>, 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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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 AppointmentRow given its index in the collection.
Declaration
public AppointmentRow this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | Index of the AppointmentRow in the collection |
Property Value
| Type | Description |
|---|---|
| AppointmentRow |
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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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(AppointmentRow)
Add one AppointmentRow to the collection.
Declaration
public int Add(AppointmentRow row)
Parameters
| Type | Name | Description |
|---|---|---|
| AppointmentRow | row | An instance of AppointmentRow to be added to the collection. |
Returns
| Type | Description |
|---|---|
| int | The index of the added AppointmentRow. |
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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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 AppointmentRow added to the collection.
Declaration
public AppointmentRow AddNew()
Returns
| Type | Description |
|---|---|
| AppointmentRow | A new instance of AppointmentRow 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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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<AppointmentRow>)
Add a range of AppointmentRow to the collection.
Declaration
public AppointmentRows AddRange(IEnumerable<AppointmentRow> rows)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<AppointmentRow> | rows |
Returns
| Type | Description |
|---|---|
| AppointmentRows | The updated AppointmentRows 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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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 AppointmentRow
Declaration
protected override TableRowBase CreateChild()
Returns
| Type | Description |
|---|---|
| TableRowBase | New instance of AppointmentRow |
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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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 AppointmentRows object. This collection will contain no rows.
Declaration
public static AppointmentRows CreateNew()
Returns
| Type | Description |
|---|---|
| AppointmentRows | A new instance of the AppointmentRows 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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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<AppointmentRow>)
Apply the predicate to each element of the collection and return the first row that matches; if no match then return null
Declaration
public AppointmentRow Find(Predicate<AppointmentRow> condition)
Parameters
| Type | Name | Description |
|---|---|---|
| Predicate<AppointmentRow> | condition |
Returns
| Type | Description |
|---|---|
| AppointmentRow |
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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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<AppointmentRow>)
Return a new collection that contains only those elements that match the condition. Elements are shared, not clones! of the original collection
Declaration
public AppointmentRows FindAll(Predicate<AppointmentRow> condition)
Parameters
| Type | Name | Description |
|---|---|---|
| Predicate<AppointmentRow> | condition |
Returns
| Type | Description |
|---|---|
| AppointmentRows |
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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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<AppointmentRow>)
Method that iterates over all members and applies the action parameter to each of them
Declaration
public void ForEach(Action<AppointmentRow> whatToDo)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<AppointmentRow> | 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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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.
GetFromCustomSearchAsync(CustomSearch, CancellationToken)
Create a new instance of the AppointmentRows 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 AppointmentRow objects representing each row will be returned.
Declaration
public static Task<AppointmentRows> GetFromCustomSearchAsync(AppointmentRows.CustomSearch query, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AppointmentRows.CustomSearch | query | The custom search to execute against the database |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | A new instance of the AppointmentRows 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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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.
GetFromIdxActiveDateAsync(DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntActiveDate'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxActiveDateAsync(DateTime activeDate, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | activeDate | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxAgendaTextIdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntAgenda_text_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxAgendaTextIdAsync(int agendaTextId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | agendaTextId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxAssociateIdActiveDateAsync(int, DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IAssoc_idActiveDateMother_idId'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxAssociateIdActiveDateAsync(int associateId, DateTime activeDate, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| DateTime | activeDate | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxAssociateIdActiveDateMotherIdAsync(int, DateTime, int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IAssoc_idActiveDateMother_idId'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxAssociateIdActiveDateMotherIdAsync(int associateId, DateTime activeDate, int motherId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| DateTime | activeDate | |
| int | motherId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxAssociateIdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IAssoc_idTypeStatusDone'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxAssociateIdAsync(int associateId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxAssociateIdStatusAsync(int, AppointmentStatus, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IAssoc_idStatusDo_byEndDate'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxAssociateIdStatusAsync(int associateId, AppointmentStatus status, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| AppointmentStatus | status | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxAssociateIdStatusDoByAsync(int, AppointmentStatus, DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IAssoc_idStatusDo_byEndDate'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxAssociateIdStatusDoByAsync(int associateId, AppointmentStatus status, DateTime doBy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| AppointmentStatus | status | |
| DateTime | doBy | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxAssociateIdStatusDoByEndDateAsync(int, AppointmentStatus, DateTime, DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IAssoc_idStatusDo_byEndDate'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxAssociateIdStatusDoByEndDateAsync(int associateId, AppointmentStatus status, DateTime doBy, DateTime endDate, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| AppointmentStatus | status | |
| DateTime | doBy | |
| DateTime | endDate | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxAssociateIdTypeAsync(int, AppointmentType, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IAssoc_idTypeStatusDone'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxAssociateIdTypeAsync(int associateId, AppointmentType type, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| AppointmentType | type | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxAssociateIdTypeEndDateAsync(int, AppointmentType, DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IAssoc_idTypeEndDateDo_by'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxAssociateIdTypeEndDateAsync(int associateId, AppointmentType type, DateTime endDate, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| AppointmentType | type | |
| DateTime | endDate | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxAssociateIdTypeEndDateDoByAsync(int, AppointmentType, DateTime, DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IAssoc_idTypeEndDateDo_by'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxAssociateIdTypeEndDateDoByAsync(int associateId, AppointmentType type, DateTime endDate, DateTime doBy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| AppointmentType | type | |
| DateTime | endDate | |
| DateTime | doBy | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxAssociateIdTypeStatusActiveDateAsync(int, AppointmentType, AppointmentStatus, DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IAssoc_idTypeStatusActiveDate'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxAssociateIdTypeStatusActiveDateAsync(int associateId, AppointmentType type, AppointmentStatus status, DateTime activeDate, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| AppointmentType | type | |
| AppointmentStatus | status | |
| DateTime | activeDate | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxAssociateIdTypeStatusAsync(int, AppointmentType, AppointmentStatus, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IAssoc_idTypeStatusDone'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxAssociateIdTypeStatusAsync(int associateId, AppointmentType type, AppointmentStatus status, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| AppointmentType | type | |
| AppointmentStatus | status | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxAssociateIdTypeStatusDoByAsync(int, AppointmentType, AppointmentStatus, DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IAssoc_idTypeStatusDo_by'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxAssociateIdTypeStatusDoByAsync(int associateId, AppointmentType type, AppointmentStatus status, DateTime doBy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| AppointmentType | type | |
| AppointmentStatus | status | |
| DateTime | doBy | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxAssociateIdTypeStatusDoneAsync(int, AppointmentType, AppointmentStatus, DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IAssoc_idTypeStatusDone'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxAssociateIdTypeStatusDoneAsync(int associateId, AppointmentType type, AppointmentStatus status, DateTime done, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| AppointmentType | type | |
| AppointmentStatus | status | |
| DateTime | done | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxContactIdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntCont_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxContactIdAsync(int contactId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | contactId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxContactIdTypeAsync(int, AppointmentType, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'ICont_idType'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxContactIdTypeAsync(int contactId, AppointmentType type, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | contactId | |
| AppointmentType | type | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxCreatedByWorkflowIdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntCreated_by_workflow_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxCreatedByWorkflowIdAsync(int createdByWorkflowId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | createdByWorkflowId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxDoByAsync(DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntDo_by'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxDoByAsync(DateTime doBy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | doBy | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxDocumentIdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntDoc_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxDocumentIdAsync(int documentId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | documentId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxDoneAsync(DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntDone'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxDoneAsync(DateTime done, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | done | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxGroupIdxAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntGrp_idx'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxGroupIdxAsync(int groupIdx, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | groupIdx | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxMotherIdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntMother_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxMotherIdAsync(int motherId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | motherId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxMotherIdStatusActiveDateAsync(int, AppointmentStatus, DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IMother_idStatusActiveDateReg_idRegAssignedByGrp_idxTypeAssoc_idId'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxMotherIdStatusActiveDateAsync(int motherId, AppointmentStatus status, DateTime activeDate, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | motherId | |
| AppointmentStatus | status | |
| DateTime | activeDate | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxMotherIdStatusActiveDateRegisteredAssociateIdAsync(int, AppointmentStatus, DateTime, int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IMother_idStatusActiveDateReg_idRegAssignedByGrp_idxTypeAssoc_idId'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxMotherIdStatusActiveDateRegisteredAssociateIdAsync(int motherId, AppointmentStatus status, DateTime activeDate, int registeredAssociateId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | motherId | |
| AppointmentStatus | status | |
| DateTime | activeDate | |
| int | registeredAssociateId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxMotherIdStatusActiveDateRegisteredAssociateIdRegisteredAssignedByAsync(int, AppointmentStatus, DateTime, int, DateTime, int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IMother_idStatusActiveDateReg_idRegAssignedByGrp_idxTypeAssoc_idId'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxMotherIdStatusActiveDateRegisteredAssociateIdRegisteredAssignedByAsync(int motherId, AppointmentStatus status, DateTime activeDate, int registeredAssociateId, DateTime registered, int assignedBy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | motherId | |
| AppointmentStatus | status | |
| DateTime | activeDate | |
| int | registeredAssociateId | |
| DateTime | registered | |
| int | assignedBy | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxMotherIdStatusActiveDateRegisteredAssociateIdRegisteredAssignedByGroupIdxAsync(int, AppointmentStatus, DateTime, int, DateTime, int, int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IMother_idStatusActiveDateReg_idRegAssignedByGrp_idxTypeAssoc_idId'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxMotherIdStatusActiveDateRegisteredAssociateIdRegisteredAssignedByGroupIdxAsync(int motherId, AppointmentStatus status, DateTime activeDate, int registeredAssociateId, DateTime registered, int assignedBy, int groupIdx, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | motherId | |
| AppointmentStatus | status | |
| DateTime | activeDate | |
| int | registeredAssociateId | |
| DateTime | registered | |
| int | assignedBy | |
| int | groupIdx | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxMotherIdStatusActiveDateRegisteredAssociateIdRegisteredAssignedByGroupIdxTypeAssociateIdAsync(int, AppointmentStatus, DateTime, int, DateTime, int, int, AppointmentType, int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IMother_idStatusActiveDateReg_idRegAssignedByGrp_idxTypeAssoc_idId'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxMotherIdStatusActiveDateRegisteredAssociateIdRegisteredAssignedByGroupIdxTypeAssociateIdAsync(int motherId, AppointmentStatus status, DateTime activeDate, int registeredAssociateId, DateTime registered, int assignedBy, int groupIdx, AppointmentType type, int associateId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | motherId | |
| AppointmentStatus | status | |
| DateTime | activeDate | |
| int | registeredAssociateId | |
| DateTime | registered | |
| int | assignedBy | |
| int | groupIdx | |
| AppointmentType | type | |
| int | associateId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxMotherIdStatusActiveDateRegisteredAssociateIdRegisteredAssignedByGroupIdxTypeAsync(int, AppointmentStatus, DateTime, int, DateTime, int, int, AppointmentType, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IMother_idStatusActiveDateReg_idRegAssignedByGrp_idxTypeAssoc_idId'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxMotherIdStatusActiveDateRegisteredAssociateIdRegisteredAssignedByGroupIdxTypeAsync(int motherId, AppointmentStatus status, DateTime activeDate, int registeredAssociateId, DateTime registered, int assignedBy, int groupIdx, AppointmentType type, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | motherId | |
| AppointmentStatus | status | |
| DateTime | activeDate | |
| int | registeredAssociateId | |
| DateTime | registered | |
| int | assignedBy | |
| int | groupIdx | |
| AppointmentType | type | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxMotherIdStatusActiveDateRegisteredAssociateIdRegisteredAsync(int, AppointmentStatus, DateTime, int, DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IMother_idStatusActiveDateReg_idRegAssignedByGrp_idxTypeAssoc_idId'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxMotherIdStatusActiveDateRegisteredAssociateIdRegisteredAsync(int motherId, AppointmentStatus status, DateTime activeDate, int registeredAssociateId, DateTime registered, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | motherId | |
| AppointmentStatus | status | |
| DateTime | activeDate | |
| int | registeredAssociateId | |
| DateTime | registered | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxMotherIdStatusAsync(int, AppointmentStatus, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IMother_idStatusActiveDateReg_idRegAssignedByGrp_idxTypeAssoc_idId'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxMotherIdStatusAsync(int motherId, AppointmentStatus status, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | motherId | |
| AppointmentStatus | status | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxPersonIdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntPers_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxPersonIdAsync(int personId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | personId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxProjectIdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntProj_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxProjectIdAsync(int projectId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | projectId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxProjectIdTypeActiveDateAsync(int, AppointmentType, DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IProj_idTypeActiveDateDoc_idAssoc_idGrp_idxMother_idAssignedByIdRegReg_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxProjectIdTypeActiveDateAsync(int projectId, AppointmentType type, DateTime activeDate, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | projectId | |
| AppointmentType | type | |
| DateTime | activeDate | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxProjectIdTypeActiveDateDocumentIdAssociateIdAsync(int, AppointmentType, DateTime, int, int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IProj_idTypeActiveDateDoc_idAssoc_idGrp_idxMother_idAssignedByIdRegReg_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxProjectIdTypeActiveDateDocumentIdAssociateIdAsync(int projectId, AppointmentType type, DateTime activeDate, int documentId, int associateId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | projectId | |
| AppointmentType | type | |
| DateTime | activeDate | |
| int | documentId | |
| int | associateId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxProjectIdTypeActiveDateDocumentIdAssociateIdGroupIdxAsync(int, AppointmentType, DateTime, int, int, int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IProj_idTypeActiveDateDoc_idAssoc_idGrp_idxMother_idAssignedByIdRegReg_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxProjectIdTypeActiveDateDocumentIdAssociateIdGroupIdxAsync(int projectId, AppointmentType type, DateTime activeDate, int documentId, int associateId, int groupIdx, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | projectId | |
| AppointmentType | type | |
| DateTime | activeDate | |
| int | documentId | |
| int | associateId | |
| int | groupIdx | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxProjectIdTypeActiveDateDocumentIdAssociateIdGroupIdxMotherIdAssignedByAsync(int, AppointmentType, DateTime, int, int, int, int, int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IProj_idTypeActiveDateDoc_idAssoc_idGrp_idxMother_idAssignedByIdRegReg_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxProjectIdTypeActiveDateDocumentIdAssociateIdGroupIdxMotherIdAssignedByAsync(int projectId, AppointmentType type, DateTime activeDate, int documentId, int associateId, int groupIdx, int motherId, int assignedBy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | projectId | |
| AppointmentType | type | |
| DateTime | activeDate | |
| int | documentId | |
| int | associateId | |
| int | groupIdx | |
| int | motherId | |
| int | assignedBy | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxProjectIdTypeActiveDateDocumentIdAssociateIdGroupIdxMotherIdAsync(int, AppointmentType, DateTime, int, int, int, int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IProj_idTypeActiveDateDoc_idAssoc_idGrp_idxMother_idAssignedByIdRegReg_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxProjectIdTypeActiveDateDocumentIdAssociateIdGroupIdxMotherIdAsync(int projectId, AppointmentType type, DateTime activeDate, int documentId, int associateId, int groupIdx, int motherId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | projectId | |
| AppointmentType | type | |
| DateTime | activeDate | |
| int | documentId | |
| int | associateId | |
| int | groupIdx | |
| int | motherId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxProjectIdTypeActiveDateDocumentIdAsync(int, AppointmentType, DateTime, int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IProj_idTypeActiveDateDoc_idAssoc_idGrp_idxMother_idAssignedByIdRegReg_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxProjectIdTypeActiveDateDocumentIdAsync(int projectId, AppointmentType type, DateTime activeDate, int documentId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | projectId | |
| AppointmentType | type | |
| DateTime | activeDate | |
| int | documentId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxProjectIdTypeAsync(int, AppointmentType, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IProj_idType'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxProjectIdTypeAsync(int projectId, AppointmentType type, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | projectId | |
| AppointmentType | type | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxRecurrenceRuleIdActiveDateAssociateIdAsync(int, DateTime, int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IRecurrenceRuleIdActiveDateAssoc_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxRecurrenceRuleIdActiveDateAssociateIdAsync(int recurrenceRuleId, DateTime activeDate, int associateId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | recurrenceRuleId | |
| DateTime | activeDate | |
| int | associateId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxRecurrenceRuleIdActiveDateAsync(int, DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IRecurrenceRuleIdActiveDateAssoc_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxRecurrenceRuleIdActiveDateAsync(int recurrenceRuleId, DateTime activeDate, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | recurrenceRuleId | |
| DateTime | activeDate | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxRecurrenceRuleIdActiveDateMotherIdAsync(int, DateTime, int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IRecurrenceRuleIdActiveDateMother_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxRecurrenceRuleIdActiveDateMotherIdAsync(int recurrenceRuleId, DateTime activeDate, int motherId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | recurrenceRuleId | |
| DateTime | activeDate | |
| int | motherId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxRecurrenceRuleIdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IRecurrenceRuleIdActiveDateAssoc_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxRecurrenceRuleIdAsync(int recurrenceRuleId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | recurrenceRuleId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxSaleIdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntSale_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxSaleIdAsync(int saleId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | saleId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxSourceAsync(short, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntSource'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxSourceAsync(short source, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| short | source | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxSuggestedAppointmentIdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntSuggestedAppointmentId'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxSuggestedAppointmentIdAsync(int suggestedAppointmentId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | suggestedAppointmentId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxSuggestedDocumentIdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntSuggestedDocumentId'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxSuggestedDocumentIdAsync(int suggestedDocumentId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | suggestedDocumentId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxTextIdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntText_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxTextIdAsync(int textId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | textId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxTypeActiveDateAsync(AppointmentType, DateTime, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'ITypeActiveDate'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxTypeActiveDateAsync(AppointmentType type, DateTime activeDate, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AppointmentType | type | |
| DateTime | activeDate | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxTypeAsync(AppointmentType, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'ITypeActiveDate'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxTypeAsync(AppointmentType type, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AppointmentType | type | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxUserdef2IdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntUdef2_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxUserdef2IdAsync(int userdef2Id, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | userdef2Id | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromIdxUserdefIdAsync(int, CancellationToken)
Create a new instance of the AppointmentRow object, by querying the database table via the index 'IDXAppntUdef_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static Task<AppointmentRows> GetFromIdxUserdefIdAsync(int userdefId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | userdefId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> | 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 Appointment table. Non-unique indexes have corresponding inner classes and methods in the AppointmentRows collection, since they may return more than one row.
GetFromReaderAsync(SoDataReader, AppointmentTableInfo, CancellationToken)
Create a new instance of the AppointmentRows 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 AppointmentRow 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 Task<AppointmentRows> GetFromReaderAsync(SoDataReader reader, AppointmentTableInfo tableInfo, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| SoDataReader | reader | SoDataReader positioned to a valid database row. |
| AppointmentTableInfo | tableInfo | AppointmentTableInfo 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. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppointmentRows> |
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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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(AppointmentRow)
Removes the given AppointmentRow from the collection
Declaration
public void Remove(AppointmentRow row)
Parameters
| Type | Name | Description |
|---|---|---|
| AppointmentRow | row | the AppointmentRow 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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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()
Tasks, appointments, followups, phone calls; and documents (document_id != 0). An appointment always has a corresponding record in VisibleFor specifying who may see this. Collection of AppointmentRow. Each element of the collection represents one row in the Appointment table.
Declaration
public AppointmentRow[] ToArray()
Returns
| Type | Description |
|---|---|
| AppointmentRow[] |
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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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 AppointmentRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) AppointmentRows AppointmentRows.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 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.