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