Show / Hide Table of Contents

Class ChatTopicUserRecordDataExtensions

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

Inheritance
System.Object
ChatTopicUserRecordDataExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class ChatTopicUserRecordDataExtensions

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
System.Collections.Generic.IEnumerable<ChatTopicUserRecordData>
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
Type Name Description
ChatTopicUserRecordData record
Returns
Type Description
Insert

ToInserts(IEnumerable<ChatTopicUserRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<ChatTopicUserRecordData> records)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ChatTopicUserRecordData> records
Returns
Type Description
System.Collections.Generic.IEnumerable<Insert>
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top