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