Show / Hide Table of Contents

Class BinaryObjectLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<BinaryObjectLinkTableInfo>)

From a TargetedDataRecord<BinaryObjectLinkTableInfo>, create and populate a BinaryObjectLinkRecordData POCO object

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

FromSelect(TargetedSelect<BinaryObjectLinkTableInfo>)

From a TargetedSelect<BinaryObjectLinkTableInfo>, execute it and return an IEnumerable<BinaryObjectLinkRecordData> with the results

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

ToInsert(BinaryObjectLinkRecordData)

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

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

ToInserts(IEnumerable<BinaryObjectLinkRecordData>)

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

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

ToRecordData(BinaryObjectLinkRow)

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

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