Show / Hide Table of Contents

Class KbCategoryLogRecordDataExtensions

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

Inheritance
object
KbCategoryLogRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class KbCategoryLogRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<KbCategoryLogTableInfo>)

From a TargetedDataRecord<KbCategoryLogTableInfo>, create and populate a KbCategoryLogRecordData POCO object

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

FromSelect(TargetedSelect<KbCategoryLogTableInfo>)

From a TargetedSelect<KbCategoryLogTableInfo>, execute it and return an IEnumerable<KbCategoryLogRecordData> with the results

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

FromSelectAsync(TargetedSelect<KbCategoryLogTableInfo>, CancellationToken)

From a TargetedSelect<KbCategoryLogTableInfo>, execute it and return an IEnumerable<KbCategoryLogRecordData> with the results

Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<KbCategoryLogRecordData> FromSelectAsync(this TargetedSelect<KbCategoryLogTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Type Name Description
TargetedSelectKbCategoryLogTableInfo select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerableKbCategoryLogRecordData
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(KbCategoryLogRecordData, CancellationToken)

Declaration
public static Task<Insert> ToInsertAsync(this KbCategoryLogRecordData record, CancellationToken cancellationToken = default)
Parameters
Type Name Description
KbCategoryLogRecordData record
CancellationToken cancellationToken
Returns
Type Description
TaskInsert

ToInsertsAsync(IEnumerable<KbCategoryLogRecordData>, CancellationToken)

Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<KbCategoryLogRecordData> records, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerableKbCategoryLogRecordData records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerableInsert

ToRecordData(KbCategoryLogRow)

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