Show / Hide Table of Contents

Class ChatTopicUserRecordDataExtensions

Extension methods to make it easy to fetch ChatTopicUserRecordData objects from the database, using the infrastructure

Inheritance
Object
ChatTopicUserRecordDataExtensions
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class ChatTopicUserRecordDataExtensions : Object

Methods

FromRecord(TargetedDataRecord<ChatTopicUserTableInfo>)

From a TargetedDataRecord<ChatTopicUserTableInfo>, create and populate a ChatTopicUserRecordData POCO object

Declaration
public static ChatTopicUserRecordData FromRecord(this TargetedDataRecord<ChatTopicUserTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<ChatTopicUserTableInfo> record
Returns
Type Description
ChatTopicUserRecordData
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
Type Name Description
TargetedSelect<ChatTopicUserTableInfo> select
Returns
Type Description
IEnumerable<ChatTopicUserRecordData>
Examples
            var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
            var result = s.FromSelect();

ToInsert(ChatTopicUserRecordData)

Extension methods to make it easy to fetch ChatTopicUserRecordData objects from the database, using the infrastructure

Declaration
public static Insert ToInsert(this ChatTopicUserRecordData record)
Parameters
Type Name Description
ChatTopicUserRecordData record
Returns
Type Description
Insert

ToInserts(IEnumerable<ChatTopicUserRecordData>)

Extension methods to make it easy to fetch ChatTopicUserRecordData objects from the database, using the infrastructure

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<ChatTopicUserRecordData> records)
Parameters
Type Name Description
IEnumerable<ChatTopicUserRecordData> records
Returns
Type Description
IEnumerable<Insert>

ToRecordData(ChatTopicUserRow)

Extension methods to make it easy to fetch ChatTopicUserRecordData objects from the database, using the infrastructure

Declaration
public static ChatTopicUserRecordData ToRecordData(this ChatTopicUserRow row)
Parameters
Type Name Description
ChatTopicUserRow row
Returns
Type Description
ChatTopicUserRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top