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