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