Class AiChatTurnRecordDataExtensions
Extension methods to make it easy to fetch AiChatTurnRecordData objects from the database,
using the infrastructure
Inheritance
AiChatTurnRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class AiChatTurnRecordDataExtensions : Object
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();
ToInsert(AiChatTurnRecordData)
Extension methods to make it easy to fetch AiChatTurnRecordData objects from the database,
using the infrastructure
Declaration
public static Insert ToInsert(this AiChatTurnRecordData record)
Parameters
Returns
ToInserts(IEnumerable<AiChatTurnRecordData>)
Extension methods to make it easy to fetch AiChatTurnRecordData objects from the database,
using the infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<AiChatTurnRecordData> records)
Parameters
Returns
ToRecordData(AiChatTurnRow)
Extension methods to make it easy to fetch AiChatTurnRecordData objects from the database,
using the infrastructure
Declaration
public static AiChatTurnRecordData ToRecordData(this AiChatTurnRow row)
Parameters
Returns