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