Class BaseTZLocationRecordDataExtensions
Extension methods to make it easy to fetch BaseTZLocationRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
BaseTZLocationRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class BaseTZLocationRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<BaseTZLocationTableInfo>)
Declaration
public static BaseTZLocationRecordData FromRecord(this TargetedDataRecord<BaseTZLocationTableInfo> record)
Parameters
Returns
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
Returns
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
Returns
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
Returns
ToInsertsAsync(IEnumerable<BaseTZLocationRecordData>, CancellationToken)
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<BaseTZLocationRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(BaseTZLocationRow)
Declaration
public static BaseTZLocationRecordData ToRecordData(this BaseTZLocationRow row)
Parameters
Returns