Show / Hide Table of Contents

Class CustConfigRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<CustConfigTableInfo>)

From a TargetedDataRecord<CustConfigTableInfo>, create and populate a CustConfigRecordData POCO object

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

FromSelect(TargetedSelect<CustConfigTableInfo>)

From a TargetedSelect<CustConfigTableInfo>, execute it and return an IEnumerable<CustConfigRecordData> with the results

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

FromSelectAsync(TargetedSelect<CustConfigTableInfo>, CancellationToken)

From a TargetedSelect<CustConfigTableInfo>, execute it and return an IEnumerable<CustConfigRecordData> with the results

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

ToInsertAsync(CustConfigRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<CustConfigRecordData>, CancellationToken)

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

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

ToRecordData(CustConfigRow)

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

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