Show / Hide Table of Contents

Class BaseTZLocationRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<BaseTZLocationTableInfo>)

From a TargetedDataRecord<BaseTZLocationTableInfo>, create and populate a BaseTZLocationRecordData POCO object

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

FromSelect(TargetedSelect<BaseTZLocationTableInfo>)

From a TargetedSelect<BaseTZLocationTableInfo>, execute it and return an IEnumerable<BaseTZLocationRecordData> with the results

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

FromSelectAsync(TargetedSelect<BaseTZLocationTableInfo>, CancellationToken)

From a TargetedSelect<BaseTZLocationTableInfo>, execute it and return an IEnumerable<BaseTZLocationRecordData> with the results

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

ToInsertAsync(BaseTZLocationRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<BaseTZLocationRecordData>, CancellationToken)

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

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

ToRecordData(BaseTZLocationRow)

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

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