Show / Hide Table of Contents

Class TravelTransactionLogRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<TravelTransactionLogTableInfo>)

From a TargetedDataRecord<TravelTransactionLogTableInfo>, create and populate a TravelTransactionLogRecordData POCO object

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

FromSelect(TargetedSelect<TravelTransactionLogTableInfo>)

From a TargetedSelect<TravelTransactionLogTableInfo>, execute it and return an IEnumerable<TravelTransactionLogRecordData> with the results

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

FromSelectAsync(TargetedSelect<TravelTransactionLogTableInfo>, CancellationToken)

From a TargetedSelect<TravelTransactionLogTableInfo>, execute it and return an IEnumerable<TravelTransactionLogRecordData> with the results

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

ToInsertAsync(TravelTransactionLogRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<TravelTransactionLogRecordData>, CancellationToken)

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

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

ToRecordData(TravelTransactionLogRow)

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

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