Show / Hide Table of Contents

Class SMessageblockRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SMessageblockTableInfo>)

From a TargetedDataRecord<SMessageblockTableInfo>, create and populate a SMessageblockRecordData POCO object

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

FromSelect(TargetedSelect<SMessageblockTableInfo>)

From a TargetedSelect<SMessageblockTableInfo>, execute it and return an IEnumerable<SMessageblockRecordData> with the results

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

ToInsert(SMessageblockRecordData)

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

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

ToInserts(IEnumerable<SMessageblockRecordData>)

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

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

ToRecordData(SMessageblockRow)

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

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