Show / Hide Table of Contents

Class BinaryObjectRecordDataExtensions

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

Inheritance
Object
BinaryObjectRecordDataExtensions
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 BinaryObjectRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<BinaryObjectTableInfo>)

From a TargetedDataRecord<BinaryObjectTableInfo>, create and populate a BinaryObjectRecordData POCO object

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

FromSelect(TargetedSelect<BinaryObjectTableInfo>)

From a TargetedSelect<BinaryObjectTableInfo>, execute it and return an IEnumerable<BinaryObjectRecordData> with the results

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

ToInsert(BinaryObjectRecordData)

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

ToInserts(IEnumerable<BinaryObjectRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<BinaryObjectRecordData> records)
Parameters
Type Name Description
IEnumerable<BinaryObjectRecordData> 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