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