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