Show / Hide Table of Contents

Class SListCustomerRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SListCustomerTableInfo>)

From a TargetedDataRecord<SListCustomerTableInfo>, create and populate a SListCustomerRecordData POCO object

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

FromSelect(TargetedSelect<SListCustomerTableInfo>)

From a TargetedSelect<SListCustomerTableInfo>, execute it and return an IEnumerable<SListCustomerRecordData> with the results

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

FromSelectAsync(TargetedSelect<SListCustomerTableInfo>, CancellationToken)

From a TargetedSelect<SListCustomerTableInfo>, execute it and return an IEnumerable<SListCustomerRecordData> with the results

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

ToInsertAsync(SListCustomerRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SListCustomerRecordData>, CancellationToken)

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

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

ToRecordData(SListCustomerRow)

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

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