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