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