Show / Hide Table of Contents

Class TravelGeneratedDatabaseRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<TravelGeneratedDatabaseTableInfo>)

From a TargetedDataRecord<TravelGeneratedDatabaseTableInfo>, create and populate a TravelGeneratedDatabaseRecordData POCO object

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

FromSelect(TargetedSelect<TravelGeneratedDatabaseTableInfo>)

From a TargetedSelect<TravelGeneratedDatabaseTableInfo>, execute it and return an IEnumerable<TravelGeneratedDatabaseRecordData> with the results

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

FromSelectAsync(TargetedSelect<TravelGeneratedDatabaseTableInfo>, CancellationToken)

From a TargetedSelect<TravelGeneratedDatabaseTableInfo>, execute it and return an IEnumerable<TravelGeneratedDatabaseRecordData> with the results

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

ToInsertAsync(TravelGeneratedDatabaseRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<TravelGeneratedDatabaseRecordData>, CancellationToken)

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

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

ToRecordData(TravelGeneratedDatabaseRow)

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

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