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