Show / Hide Table of Contents

Class KbCategoryRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<KbCategoryTableInfo>)

From a TargetedDataRecord<KbCategoryTableInfo>, create and populate a KbCategoryRecordData POCO object

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

FromSelect(TargetedSelect<KbCategoryTableInfo>)

From a TargetedSelect<KbCategoryTableInfo>, execute it and return an IEnumerable<KbCategoryRecordData> with the results

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

FromSelectAsync(TargetedSelect<KbCategoryTableInfo>, CancellationToken)

From a TargetedSelect<KbCategoryTableInfo>, execute it and return an IEnumerable<KbCategoryRecordData> with the results

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

ToInsertAsync(KbCategoryRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<KbCategoryRecordData>, CancellationToken)

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

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

ToRecordData(KbCategoryRow)

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

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