Show / Hide Table of Contents

Class ExtraMenusRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ExtraMenusTableInfo>)

From a TargetedDataRecord<ExtraMenusTableInfo>, create and populate a ExtraMenusRecordData POCO object

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

FromSelect(TargetedSelect<ExtraMenusTableInfo>)

From a TargetedSelect<ExtraMenusTableInfo>, execute it and return an IEnumerable<ExtraMenusRecordData> with the results

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

FromSelectAsync(TargetedSelect<ExtraMenusTableInfo>, CancellationToken)

From a TargetedSelect<ExtraMenusTableInfo>, execute it and return an IEnumerable<ExtraMenusRecordData> with the results

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

ToInsertAsync(ExtraMenusRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ExtraMenusRecordData>, CancellationToken)

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

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

ToRecordData(ExtraMenusRow)

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

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