Class TravelCurrentRecordDataExtensions
Extension methods to make it easy to fetch TravelCurrentRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
TravelCurrentRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class TravelCurrentRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<TravelCurrentTableInfo>)
Declaration
public static TravelCurrentRecordData FromRecord(this TargetedDataRecord<TravelCurrentTableInfo> record)
Parameters
Returns
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 { TravelCurrentItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<TravelCurrentTableInfo>)
From a TargetedSelect<TravelCurrentTableInfo>, execute it and return an IEnumerable<TravelCurrentRecordData> with the results
Declaration
public static IEnumerable<TravelCurrentRecordData> FromSelect(this TargetedSelect<TravelCurrentTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
FromSelectAsync(TargetedSelect<TravelCurrentTableInfo>, CancellationToken)
From a TargetedSelect<TravelCurrentTableInfo>, execute it and return an IEnumerable<TravelCurrentRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<TravelCurrentRecordData> FromSelectAsync(this TargetedSelect<TravelCurrentTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(TravelCurrentRecordData, CancellationToken)
Extension methods to make it easy to fetch TravelCurrentRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this TravelCurrentRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<TravelCurrentRecordData>, CancellationToken)
Extension methods to make it easy to fetch TravelCurrentRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<TravelCurrentRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(TravelCurrentRow)
Extension methods to make it easy to fetch TravelCurrentRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static TravelCurrentRecordData ToRecordData(this TravelCurrentRow row)
Parameters
Returns