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