Show / Hide Table of Contents

Class KbGroupRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<KbGroupTableInfo>)

From a TargetedDataRecord<KbGroupTableInfo>, create and populate a KbGroupRecordData POCO object

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

FromSelect(TargetedSelect<KbGroupTableInfo>)

From a TargetedSelect<KbGroupTableInfo>, execute it and return an IEnumerable<KbGroupRecordData> with the results

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

FromSelectAsync(TargetedSelect<KbGroupTableInfo>, CancellationToken)

From a TargetedSelect<KbGroupTableInfo>, execute it and return an IEnumerable<KbGroupRecordData> with the results

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

ToInsertAsync(KbGroupRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<KbGroupRecordData>, CancellationToken)

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

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

ToRecordData(KbGroupRow)

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

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