Show / Hide Table of Contents

Class TicketTypePriorityRecordDataExtensions

Extension methods to make it easy to fetch TicketTypePriorityRecordData objects from the database, using the TargetedSelect infrastructure

Inheritance
object
TicketTypePriorityRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class TicketTypePriorityRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<TicketTypePriorityTableInfo>)

From a TargetedDataRecord<TicketTypePriorityTableInfo>, create and populate a TicketTypePriorityRecordData POCO object

Declaration
public static TicketTypePriorityRecordData FromRecord(this TargetedDataRecord<TicketTypePriorityTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<TicketTypePriorityTableInfo> record
Returns
Type Description
TicketTypePriorityRecordData
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
/* add joins, return fields etc. as you wish */
s.ReturnFields.Add(s.Table.All);
var result = s.Records().Select(r => new { TicketTypePriorityItem = r.FromRecord(), /* fetch other fields here */ });

FromSelect(TargetedSelect<TicketTypePriorityTableInfo>)

From a TargetedSelect<TicketTypePriorityTableInfo>, execute it and return an IEnumerable<TicketTypePriorityRecordData> with the results

Declaration
public static IEnumerable<TicketTypePriorityRecordData> FromSelect(this TargetedSelect<TicketTypePriorityTableInfo> select)
Parameters
Type Name Description
TargetedSelect<TicketTypePriorityTableInfo> select
Returns
Type Description
IEnumerable<TicketTypePriorityRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

FromSelectAsync(TargetedSelect<TicketTypePriorityTableInfo>, CancellationToken)

From a TargetedSelect<TicketTypePriorityTableInfo>, execute it and return an IEnumerable<TicketTypePriorityRecordData> with the results

Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<TicketTypePriorityRecordData> FromSelectAsync(this TargetedSelect<TicketTypePriorityTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Type Name Description
TargetedSelect<TicketTypePriorityTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<TicketTypePriorityRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(TicketTypePriorityRecordData, CancellationToken)

Extension methods to make it easy to fetch TicketTypePriorityRecordData objects from the database, using the TargetedSelect infrastructure

Declaration
public static Task<Insert> ToInsertAsync(this TicketTypePriorityRecordData record, CancellationToken cancellationToken = default)
Parameters
Type Name Description
TicketTypePriorityRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

ToInsertsAsync(IEnumerable<TicketTypePriorityRecordData>, CancellationToken)

Extension methods to make it easy to fetch TicketTypePriorityRecordData objects from the database, using the TargetedSelect infrastructure

Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<TicketTypePriorityRecordData> records, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerable<TicketTypePriorityRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

ToRecordData(TicketTypePriorityRow)

Extension methods to make it easy to fetch TicketTypePriorityRecordData objects from the database, using the TargetedSelect infrastructure

Declaration
public static TicketTypePriorityRecordData ToRecordData(this TicketTypePriorityRow row)
Parameters
Type Name Description
TicketTypePriorityRow row
Returns
Type Description
TicketTypePriorityRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top