Show / Hide Table of Contents

Class ExtraTablesEntryRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ExtraTablesEntryTableInfo>)

From a TargetedDataRecord<ExtraTablesEntryTableInfo>, create and populate a ExtraTablesEntryRecordData POCO object

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

FromSelect(TargetedSelect<ExtraTablesEntryTableInfo>)

From a TargetedSelect<ExtraTablesEntryTableInfo>, execute it and return an IEnumerable<ExtraTablesEntryRecordData> with the results

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

FromSelectAsync(TargetedSelect<ExtraTablesEntryTableInfo>, CancellationToken)

From a TargetedSelect<ExtraTablesEntryTableInfo>, execute it and return an IEnumerable<ExtraTablesEntryRecordData> with the results

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

ToInsertAsync(ExtraTablesEntryRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ExtraTablesEntryRecordData>, CancellationToken)

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

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

ToRecordData(ExtraTablesEntryRow)

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

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