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