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