Show / Hide Table of Contents

Class CategoryFamilyRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<CategoryFamilyTableInfo>)

From a TargetedDataRecord<CategoryFamilyTableInfo>, create and populate a CategoryFamilyRecordData POCO object

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

FromSelect(TargetedSelect<CategoryFamilyTableInfo>)

From a TargetedSelect<CategoryFamilyTableInfo>, execute it and return an IEnumerable<CategoryFamilyRecordData> with the results

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

FromSelectAsync(TargetedSelect<CategoryFamilyTableInfo>, CancellationToken)

From a TargetedSelect<CategoryFamilyTableInfo>, execute it and return an IEnumerable<CategoryFamilyRecordData> with the results

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

ToInsertAsync(CategoryFamilyRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<CategoryFamilyRecordData>, CancellationToken)

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

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

ToRecordData(CategoryFamilyRow)

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

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