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