Show / Hide Table of Contents

Class ZipToCityRecordDataExtensions

Extension methods to make it easy to fetch ZipToCityRecordData objects from the database, using the TargetedSelect infrastructure

Inheritance
object
ZipToCityRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
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
Type Name Description
TargetedDataRecord<ZipToCityTableInfo> record
Returns
Type Description
ZipToCityRecordData
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
Type Name Description
TargetedSelect<ZipToCityTableInfo> select
Returns
Type Description
IEnumerable<ZipToCityRecordData>
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
Type Name Description
TargetedSelect<ZipToCityTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<ZipToCityRecordData>
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
Type Name Description
ZipToCityRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

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
Type Name Description
IEnumerable<ZipToCityRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

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
Type Name Description
ZipToCityRow row
Returns
Type Description
ZipToCityRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top