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