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