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