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