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