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