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