Show / Hide Table of Contents

Class TicketLogRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<TicketLogTableInfo>)

From a TargetedDataRecord<TicketLogTableInfo>, create and populate a TicketLogRecordData POCO object

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

FromSelect(TargetedSelect<TicketLogTableInfo>)

From a TargetedSelect<TicketLogTableInfo>, execute it and return an IEnumerable<TicketLogRecordData> with the results

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

FromSelectAsync(TargetedSelect<TicketLogTableInfo>, CancellationToken)

From a TargetedSelect<TicketLogTableInfo>, execute it and return an IEnumerable<TicketLogRecordData> with the results

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

ToInsertAsync(TicketLogRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<TicketLogRecordData>, CancellationToken)

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

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

ToRecordData(TicketLogRow)

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

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