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