Show / Hide Table of Contents

Class KbEntryLogRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<KbEntryLogTableInfo>)

From a TargetedDataRecord<KbEntryLogTableInfo>, create and populate a KbEntryLogRecordData POCO object

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

FromSelect(TargetedSelect<KbEntryLogTableInfo>)

From a TargetedSelect<KbEntryLogTableInfo>, execute it and return an IEnumerable<KbEntryLogRecordData> with the results

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

ToInsert(KbEntryLogRecordData)

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

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

ToInserts(IEnumerable<KbEntryLogRecordData>)

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

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

ToRecordData(KbEntryLogRow)

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

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