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