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