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
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class OLESubjectTextRecordDataExtensions

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)

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

ToInserts(IEnumerable<OLESubjectTextRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<OLESubjectTextRecordData> records)
Parameters
Type Name Description
IEnumerable<OLESubjectTextRecordData> records
Returns
Type Description
IEnumerable<Insert>
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top