Show / Hide Table of Contents

Class ChatSessionRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ChatSessionTableInfo>)

From a TargetedDataRecord<ChatSessionTableInfo>, create and populate a ChatSessionRecordData POCO object

Declaration
public static ChatSessionRecordData FromRecord(this TargetedDataRecord<ChatSessionTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<ChatSessionTableInfo> record
Returns
Type Description
ChatSessionRecordData
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 { ChatSessionItem = r.FromRecord(), /* fetch other fields here */ });

FromSelect(TargetedSelect<ChatSessionTableInfo>)

From a TargetedSelect<ChatSessionTableInfo>, execute it and return an IEnumerable<ChatSessionRecordData> with the results

Declaration
public static IEnumerable<ChatSessionRecordData> FromSelect(this TargetedSelect<ChatSessionTableInfo> select)
Parameters
Type Name Description
TargetedSelect<ChatSessionTableInfo> select
Returns
Type Description
IEnumerable<ChatSessionRecordData>
Examples
            var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
            var result = s.FromSelect();

ToInsert(ChatSessionRecordData)

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

ToInserts(IEnumerable<ChatSessionRecordData>)

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