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