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