Show / Hide Table of Contents

Class AddressFormatRecordDataExtensions

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

Inheritance
object
AddressFormatRecordDataExtensions
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 AddressFormatRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<AddressFormatTableInfo>)

From a TargetedDataRecord<AddressFormatTableInfo>, create and populate a AddressFormatRecordData POCO object

Declaration
public static AddressFormatRecordData FromRecord(this TargetedDataRecord<AddressFormatTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<AddressFormatTableInfo> record
Returns
Type Description
AddressFormatRecordData
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 { AddressFormatItem = r.FromRecord(), /* fetch other fields here */ });

FromSelect(TargetedSelect<AddressFormatTableInfo>)

From a TargetedSelect<AddressFormatTableInfo>, execute it and return an IEnumerable<AddressFormatRecordData> with the results

Declaration
public static IEnumerable<AddressFormatRecordData> FromSelect(this TargetedSelect<AddressFormatTableInfo> select)
Parameters
Type Name Description
TargetedSelect<AddressFormatTableInfo> select
Returns
Type Description
IEnumerable<AddressFormatRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

FromSelectAsync(TargetedSelect<AddressFormatTableInfo>, CancellationToken)

From a TargetedSelect<AddressFormatTableInfo>, execute it and return an IEnumerable<AddressFormatRecordData> with the results

Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<AddressFormatRecordData> FromSelectAsync(this TargetedSelect<AddressFormatTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Type Name Description
TargetedSelect<AddressFormatTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<AddressFormatRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(AddressFormatRecordData, CancellationToken)

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

Declaration
public static Task<Insert> ToInsertAsync(this AddressFormatRecordData record, CancellationToken cancellationToken = default)
Parameters
Type Name Description
AddressFormatRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

ToInsertsAsync(IEnumerable<AddressFormatRecordData>, CancellationToken)

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

Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<AddressFormatRecordData> records, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerable<AddressFormatRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

ToRecordData(AddressFormatRow)

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

Declaration
public static AddressFormatRecordData ToRecordData(this AddressFormatRow row)
Parameters
Type Name Description
AddressFormatRow row
Returns
Type Description
AddressFormatRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top