Show / Hide Table of Contents

Class MrMrsRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<MrMrsTableInfo>)

From a TargetedDataRecord<MrMrsTableInfo>, create and populate a MrMrsRecordData POCO object

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

FromSelect(TargetedSelect<MrMrsTableInfo>)

From a TargetedSelect<MrMrsTableInfo>, execute it and return an IEnumerable<MrMrsRecordData> with the results

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

ToInsert(MrMrsRecordData)

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

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

ToInserts(IEnumerable<MrMrsRecordData>)

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

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

ToRecordData(MrMrsRow)

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

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