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