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: SuperOfficeCRMRows
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
TargetedDataRecordBaseTZLocationTableInfo 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
TargetedSelectBaseTZLocationTableInfo select
Returns
Type Description
IEnumerableBaseTZLocationRecordData
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
TargetedSelectBaseTZLocationTableInfo select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerableBaseTZLocationRecordData
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(BaseTZLocationRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<BaseTZLocationRecordData>, CancellationToken)

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

ToRecordData(BaseTZLocationRow)

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