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