Class TZStdRuleRecordDataExtensions
Extension methods to make it easy to fetch TZStdRuleRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
TZStdRuleRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class TZStdRuleRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<TZStdRuleTableInfo>)
From a TargetedDataRecord<TZStdRuleTableInfo>, create and populate a TZStdRuleRecordData POCO object
Declaration
public static TZStdRuleRecordData FromRecord(this TargetedDataRecord<TZStdRuleTableInfo> 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 { TZStdRuleItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<TZStdRuleTableInfo>)
From a TargetedSelect<TZStdRuleTableInfo>, execute it and return an IEnumerable<TZStdRuleRecordData> with the results
Declaration
public static IEnumerable<TZStdRuleRecordData> FromSelect(this TargetedSelect<TZStdRuleTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
FromSelectAsync(TargetedSelect<TZStdRuleTableInfo>, CancellationToken)
From a TargetedSelect<TZStdRuleTableInfo>, execute it and return an IEnumerable<TZStdRuleRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<TZStdRuleRecordData> FromSelectAsync(this TargetedSelect<TZStdRuleTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(TZStdRuleRecordData, CancellationToken)
Extension methods to make it easy to fetch TZStdRuleRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this TZStdRuleRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<TZStdRuleRecordData>, CancellationToken)
Extension methods to make it easy to fetch TZStdRuleRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<TZStdRuleRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(TZStdRuleRow)
Extension methods to make it easy to fetch TZStdRuleRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static TZStdRuleRecordData ToRecordData(this TZStdRuleRow row)
Parameters
Returns