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