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