Show / Hide Table of Contents

Class KbEntryKeywordRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<KbEntryKeywordTableInfo>)

From a TargetedDataRecord<KbEntryKeywordTableInfo>, create and populate a KbEntryKeywordRecordData POCO object

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

FromSelect(TargetedSelect<KbEntryKeywordTableInfo>)

From a TargetedSelect<KbEntryKeywordTableInfo>, execute it and return an IEnumerable<KbEntryKeywordRecordData> with the results

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

FromSelectAsync(TargetedSelect<KbEntryKeywordTableInfo>, CancellationToken)

From a TargetedSelect<KbEntryKeywordTableInfo>, execute it and return an IEnumerable<KbEntryKeywordRecordData> with the results

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

ToInsertAsync(KbEntryKeywordRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<KbEntryKeywordRecordData>, CancellationToken)

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

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

ToRecordData(KbEntryKeywordRow)

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

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