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