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