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