Class RowDefaulter
Defaulter for HDB row objects.
Inherited Members
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public sealed class RowDefaulter
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
Examples
Takes a HDB Row object and set default values..
ContactRow row; // Some row
RowDefaulter.SetDefaultsAsync(row);
Methods
GetDefaultMDOValueAsync(MDOType, CancellationToken)
Get default value for an MDO List.
Declaration
public static Task<int> GetDefaultMDOValueAsync(MDOType mdoType, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| MDOType | mdoType | Type of MDO list to get the default value for. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<int> | Default value for the MDO list. |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(AppointmentRow, DefaulterStrategy, CancellationToken)
Set default values for a AppointmentRow object.
Declaration
public static Task SetDefaultsAsync(AppointmentRow row, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AppointmentRow | row | The row to set default values on. |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(AppointmentRow, TaskType, DefaulterStrategy, CancellationToken)
Set default values for a AppointmentRow object. Overwrites existing values
Declaration
public static Task SetDefaultsAsync(AppointmentRow row, TaskType type, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AppointmentRow | row | The row to set default values on. |
| TaskType | type | The type of appointment |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(AppointmentRow, TaskType, CancellationToken)
Set default values for a AppointmentRow object. Overwrites existing values
Declaration
public static Task SetDefaultsAsync(AppointmentRow row, TaskType type, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AppointmentRow | row | The row to set default values on. |
| TaskType | type | The type of appointment |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(AppointmentRow, CancellationToken)
Set default values for a AppointmentRow object.
Declaration
public static Task SetDefaultsAsync(AppointmentRow row, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AppointmentRow | row | The row to set default values on. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(ContactRow, DefaulterStrategy, CancellationToken)
Set default values for a ContactRows object.
Declaration
public static Task SetDefaultsAsync(ContactRow row, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ContactRow | row | The row to set default values on. |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(ContactRow, CancellationToken)
Set default values for a ContactRows object.
Declaration
public static Task SetDefaultsAsync(ContactRow row, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ContactRow | row | The row to set default values on. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(DocumentRow, DefaulterStrategy, CancellationToken)
Set default values for a DocumentRow object.
Declaration
public static Task SetDefaultsAsync(DocumentRow row, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentRow | row | The row to set default values on. |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(DocumentRow, CancellationToken)
Set default values for a DocumentRow object.
Declaration
public static Task SetDefaultsAsync(DocumentRow row, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentRow | row | The row to set default values on. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(EjCategoryRow, DefaulterStrategy, CancellationToken)
Set default values for a EjCategoryRow object.
Declaration
public static Task SetDefaultsAsync(EjCategoryRow row, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| EjCategoryRow | row | The row to set default values on. |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(EjCategoryRow, CancellationToken)
Set default values for a EjCategoryRow object.
Declaration
public static Task SetDefaultsAsync(EjCategoryRow row, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| EjCategoryRow | row | The row to set default values on. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(PersonRow, ContactRow, DefaulterStrategy, CancellationToken)
Set default values for a PersonRow object.
Declaration
public static Task SetDefaultsAsync(PersonRow row, ContactRow contact, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| PersonRow | row | The row to set default values on. |
| ContactRow | contact | The contact row that contains default data. |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(PersonRow, ContactRow, CancellationToken)
Set default values for a PersonRow object.
Declaration
public static Task SetDefaultsAsync(PersonRow row, ContactRow contact, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| PersonRow | row | The row to set default values on. |
| ContactRow | contact | The contact row that contains default data. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(PersonRow, DefaulterStrategy, CancellationToken)
Set default values for a PersonRow object.
Declaration
public static Task SetDefaultsAsync(PersonRow row, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| PersonRow | row | The row to set default values on. |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(PersonRow, int, DefaulterStrategy, CancellationToken)
Set default values for a PersonRow object.
Declaration
public static Task SetDefaultsAsync(PersonRow row, int contactId, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| PersonRow | row | The row to set default values on. |
| int | contactId | |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(PersonRow, int, CancellationToken)
Set default values for a PersonRow object.
Declaration
public static Task SetDefaultsAsync(PersonRow row, int contactId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| PersonRow | row | The row to set default values on. |
| int | contactId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(PersonRow, CancellationToken)
Set default values for a PersonRow object.
Declaration
public static Task SetDefaultsAsync(PersonRow row, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| PersonRow | row | The row to set default values on. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(ProjectRow, DefaulterStrategy, CancellationToken)
Set default values for a ProjectRow object.
Declaration
public static Task SetDefaultsAsync(ProjectRow row, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectRow | row | The row to set default values on. |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(ProjectRow, CancellationToken)
Set default values for a ProjectRow object.
Declaration
public static Task SetDefaultsAsync(ProjectRow row, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectRow | row | The row to set default values on. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(RelationsRow, DefaulterStrategy, CancellationToken)
Set default values for a RelationsRow object: associate id, group id, end date
Declaration
public static Task SetDefaultsAsync(RelationsRow row, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| RelationsRow | row | |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(RelationsRow, CancellationToken)
Set default values for a RelationsRow object: associate id, group id, end date
Declaration
public static Task SetDefaultsAsync(RelationsRow row, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| RelationsRow | row | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(SORLabelLayoutRow, DefaulterStrategy, CancellationToken)
Set default values for a AppointmentRow object.
Declaration
public static Task SetDefaultsAsync(SORLabelLayoutRow row, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| SORLabelLayoutRow | row | The row to set default values on. |
| DefaulterStrategy | strategy | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(SaleRow, DefaulterStrategy, CancellationToken)
Set default values for a SaleRow object.
Declaration
public static Task SetDefaultsAsync(SaleRow row, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| SaleRow | row | The row to set default values on. |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(SaleRow, CancellationToken)
Set default values for a SaleRow object.
Declaration
public static Task SetDefaultsAsync(SaleRow row, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| SaleRow | row | The row to set default values on. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(SelectionRow, DefaulterStrategy, CancellationToken)
Set default values for a SelectionRow object.
Declaration
public static Task SetDefaultsAsync(SelectionRow row, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| SelectionRow | row | The row to set default values on. |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(SelectionRow, CancellationToken)
Set default values for a SelectionRow object.
Declaration
public static Task SetDefaultsAsync(SelectionRow row, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| SelectionRow | row | The row to set default values on. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(TableRowBase, DefaulterStrategy, CancellationToken)
Set default values for a row. This default implementation does nothing.
Declaration
public static Task SetDefaultsAsync(TableRowBase row, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TableRowBase | row | The row to set default values on. |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(TableRowBase, CancellationToken)
Set default values for a row. This default implementation does nothing.
Declaration
public static Task SetDefaultsAsync(TableRowBase row, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TableRowBase | row | The row to set default values on. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(TicketPriorityRow, DefaulterStrategy, CancellationToken)
Set default values for a TicketPriorityRow. Implementation correctly sets all default values, like sortOrder, start/stop dates, etc.
Declaration
public static Task SetDefaultsAsync(TicketPriorityRow row, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TicketPriorityRow | row | The row to set default values on. |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(TicketPriorityRow, CancellationToken)
Set default values for a TicketPriorityRow
Declaration
public static Task SetDefaultsAsync(TicketPriorityRow row, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TicketPriorityRow | row | The row to set default values on. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(TicketStatusRow, DefaulterStrategy, CancellationToken)
Set default values for a TicketStatusRow object.
Declaration
public static Task SetDefaultsAsync(TicketStatusRow row, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TicketStatusRow | row | The row to set default values on. |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(TicketStatusRow, CancellationToken)
Set default values for a TicketStatusRow object.
Declaration
public static Task SetDefaultsAsync(TicketStatusRow row, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TicketStatusRow | row | The row to set default values on. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(TicketTypeRow, DefaulterStrategy, CancellationToken)
Set default values for a TicketTypeRow object.
Declaration
public static Task SetDefaultsAsync(TicketTypeRow row, DefaulterStrategy strategy, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TicketTypeRow | row | The row to set default values on. |
| DefaulterStrategy | strategy | Strategy used when appliying default values. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.
SetDefaultsAsync(TicketTypeRow, CancellationToken)
Set default values for a TicketTypeRow object.
Declaration
public static Task SetDefaultsAsync(TicketTypeRow row, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TicketTypeRow | row | The row to set default values on. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This defaulter does not know anything about relations, hence the contacts country is not applied on the person and the appointment's text is not set on hte related text object.