Class ChatSessionRecordDataExtensions
Extension methods to make it easy to fetch ChatSessionRecordData objects from the database,
using the infrastructure
Inheritance
ChatSessionRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class ChatSessionRecordDataExtensions : Object
Methods
FromRecord(TargetedDataRecord<ChatSessionTableInfo>)
Declaration
public static ChatSessionRecordData FromRecord(this TargetedDataRecord<ChatSessionTableInfo> 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 { ChatSessionItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<ChatSessionTableInfo>)
From a TargetedSelect<ChatSessionTableInfo>, execute it and return an IEnumerable<ChatSessionRecordData> with the results
Declaration
public static IEnumerable<ChatSessionRecordData> FromSelect(this TargetedSelect<ChatSessionTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(ChatSessionRecordData)
Extension methods to make it easy to fetch ChatSessionRecordData objects from the database,
using the infrastructure
Declaration
public static Insert ToInsert(this ChatSessionRecordData record)
Parameters
Returns
ToInserts(IEnumerable<ChatSessionRecordData>)
Extension methods to make it easy to fetch ChatSessionRecordData objects from the database,
using the infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<ChatSessionRecordData> records)
Parameters
Returns
ToRecordData(ChatSessionRow)
Extension methods to make it easy to fetch ChatSessionRecordData objects from the database,
using the infrastructure
Declaration
public static ChatSessionRecordData ToRecordData(this ChatSessionRow row)
Parameters
Returns