Show / Hide Table of Contents

Class KbGroupEntryRecordDataExtensions

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

Inheritance
object
KbGroupEntryRecordDataExtensions
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 KbGroupEntryRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<KbGroupEntryTableInfo>)

From a TargetedDataRecord<KbGroupEntryTableInfo>, create and populate a KbGroupEntryRecordData POCO object

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

FromSelect(TargetedSelect<KbGroupEntryTableInfo>)

From a TargetedSelect<KbGroupEntryTableInfo>, execute it and return an IEnumerable<KbGroupEntryRecordData> with the results

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

FromSelectAsync(TargetedSelect<KbGroupEntryTableInfo>, CancellationToken)

From a TargetedSelect<KbGroupEntryTableInfo>, execute it and return an IEnumerable<KbGroupEntryRecordData> with the results

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

ToInsertAsync(KbGroupEntryRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<KbGroupEntryRecordData>, CancellationToken)

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

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

ToRecordData(KbGroupEntryRow)

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

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