Show / Hide Table of Contents

Class SWashingRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SWashingTableInfo>)

From a TargetedDataRecord<SWashingTableInfo>, create and populate a SWashingRecordData POCO object

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

FromSelect(TargetedSelect<SWashingTableInfo>)

From a TargetedSelect<SWashingTableInfo>, execute it and return an IEnumerable<SWashingRecordData> with the results

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

FromSelectAsync(TargetedSelect<SWashingTableInfo>, CancellationToken)

From a TargetedSelect<SWashingTableInfo>, execute it and return an IEnumerable<SWashingRecordData> with the results

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

ToInsertAsync(SWashingRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SWashingRecordData>, CancellationToken)

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

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

ToRecordData(SWashingRow)

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

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