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