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