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