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