Show / Hide Table of Contents

Class SelectionMemberRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SelectionMemberTableInfo>)

From a TargetedDataRecord<SelectionMemberTableInfo>, create and populate a SelectionMemberRecordData POCO object

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

FromSelect(TargetedSelect<SelectionMemberTableInfo>)

From a TargetedSelect<SelectionMemberTableInfo>, execute it and return an IEnumerable<SelectionMemberRecordData> with the results

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

ToInsert(SelectionMemberRecordData)

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

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

ToInserts(IEnumerable<SelectionMemberRecordData>)

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

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

ToRecordData(SelectionMemberRow)

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

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