Show / Hide Table of Contents

Class OLESubjectTextRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<OLESubjectTextTableInfo>)

From a TargetedDataRecord<OLESubjectTextTableInfo>, create and populate a OLESubjectTextRecordData POCO object

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

FromSelect(TargetedSelect<OLESubjectTextTableInfo>)

From a TargetedSelect<OLESubjectTextTableInfo>, execute it and return an IEnumerable<OLESubjectTextRecordData> with the results

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

ToInsert(OLESubjectTextRecordData)

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

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

ToInserts(IEnumerable<OLESubjectTextRecordData>)

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

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

ToRecordData(OLESubjectTextRow)

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

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