Show / Hide Table of Contents

Class MessageCustomersRecordDataExtensions

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

Inheritance
Object
MessageCustomersRecordDataExtensions
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 MessageCustomersRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<MessageCustomersTableInfo>)

From a TargetedDataRecord<MessageCustomersTableInfo>, create and populate a MessageCustomersRecordData POCO object

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

FromSelect(TargetedSelect<MessageCustomersTableInfo>)

From a TargetedSelect<MessageCustomersTableInfo>, execute it and return an IEnumerable<MessageCustomersRecordData> with the results

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

ToInsert(MessageCustomersRecordData)

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

ToInserts(IEnumerable<MessageCustomersRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<MessageCustomersRecordData> records)
Parameters
Type Name Description
IEnumerable<MessageCustomersRecordData> 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