Show / Hide Table of Contents

Class SubscriptionUnitRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SubscriptionUnitTableInfo>)

From a TargetedDataRecord<SubscriptionUnitTableInfo>, create and populate a SubscriptionUnitRecordData POCO object

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

FromSelect(TargetedSelect<SubscriptionUnitTableInfo>)

From a TargetedSelect<SubscriptionUnitTableInfo>, execute it and return an IEnumerable<SubscriptionUnitRecordData> with the results

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

ToInsert(SubscriptionUnitRecordData)

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

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

ToInserts(IEnumerable<SubscriptionUnitRecordData>)

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

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

ToRecordData(SubscriptionUnitRow)

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

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