Show / Hide Table of Contents

Class TZLocationRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<TZLocationTableInfo>)

From a TargetedDataRecord<TZLocationTableInfo>, create and populate a TZLocationRecordData POCO object

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

FromSelect(TargetedSelect<TZLocationTableInfo>)

From a TargetedSelect<TZLocationTableInfo>, execute it and return an IEnumerable<TZLocationRecordData> with the results

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

FromSelectAsync(TargetedSelect<TZLocationTableInfo>, CancellationToken)

From a TargetedSelect<TZLocationTableInfo>, execute it and return an IEnumerable<TZLocationRecordData> with the results

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

ToInsertAsync(TZLocationRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<TZLocationRecordData>, CancellationToken)

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

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

ToRecordData(TZLocationRow)

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

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