Show / Hide Table of Contents

Class TicketLogActionRecordDataExtensions

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

Inheritance
object
TicketLogActionRecordDataExtensions
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 TicketLogActionRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<TicketLogActionTableInfo>)

From a TargetedDataRecord<TicketLogActionTableInfo>, create and populate a TicketLogActionRecordData POCO object

Declaration
public static TicketLogActionRecordData FromRecord(this TargetedDataRecord<TicketLogActionTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<TicketLogActionTableInfo> record
Returns
Type Description
TicketLogActionRecordData
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 { TicketLogActionItem = r.FromRecord(), /* fetch other fields here */ });

FromSelect(TargetedSelect<TicketLogActionTableInfo>)

From a TargetedSelect<TicketLogActionTableInfo>, execute it and return an IEnumerable<TicketLogActionRecordData> with the results

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

FromSelectAsync(TargetedSelect<TicketLogActionTableInfo>, CancellationToken)

From a TargetedSelect<TicketLogActionTableInfo>, execute it and return an IEnumerable<TicketLogActionRecordData> with the results

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

ToInsertAsync(TicketLogActionRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<TicketLogActionRecordData>, CancellationToken)

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

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

ToRecordData(TicketLogActionRow)

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

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