Class TaskMenuHeadingLinkRecordDataExtensions
Extension methods to make it easy to fetch TaskMenuHeadingLinkRecordData objects from the database, using the TargetedSelect infrastructure
Inherited Members
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class TaskMenuHeadingLinkRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<TaskMenuHeadingLinkTableInfo>)
From a TargetedDataRecord<TaskMenuHeadingLinkTableInfo>, create and populate a TaskMenuHeadingLinkRecordData POCO object
Declaration
public static TaskMenuHeadingLinkRecordData FromRecord(this TargetedDataRecord<TaskMenuHeadingLinkTableInfo> record)
Parameters
Type | Name | Description |
---|---|---|
TargetedDataRecord<TaskMenuHeadingLinkTableInfo> | record |
Returns
Type | Description |
---|---|
TaskMenuHeadingLinkRecordData |
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 { TaskMenuHeadingLinkItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<TaskMenuHeadingLinkTableInfo>)
From a TargetedSelect<TaskMenuHeadingLinkTableInfo>, execute it and return an IEnumerable<TaskMenuHeadingLinkRecordData> with the results
Declaration
public static IEnumerable<TaskMenuHeadingLinkRecordData> FromSelect(this TargetedSelect<TaskMenuHeadingLinkTableInfo> select)
Parameters
Type | Name | Description |
---|---|---|
TargetedSelect<TaskMenuHeadingLinkTableInfo> | select |
Returns
Type | Description |
---|---|
IEnumerable<TaskMenuHeadingLinkRecordData> |
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
FromSelectAsync(TargetedSelect<TaskMenuHeadingLinkTableInfo>, CancellationToken)
From a TargetedSelect<TaskMenuHeadingLinkTableInfo>, execute it and return an IEnumerable<TaskMenuHeadingLinkRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<TaskMenuHeadingLinkRecordData> FromSelectAsync(this TargetedSelect<TaskMenuHeadingLinkTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
TargetedSelect<TaskMenuHeadingLinkTableInfo> | select | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
IAsyncEnumerable<TaskMenuHeadingLinkRecordData> |
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(TaskMenuHeadingLinkRecordData, CancellationToken)
Extension methods to make it easy to fetch TaskMenuHeadingLinkRecordData objects from the database, using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this TaskMenuHeadingLinkRecordData record, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
TaskMenuHeadingLinkRecordData | record | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<Insert> |
ToInsertsAsync(IEnumerable<TaskMenuHeadingLinkRecordData>, CancellationToken)
Extension methods to make it easy to fetch TaskMenuHeadingLinkRecordData objects from the database, using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<TaskMenuHeadingLinkRecordData> records, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TaskMenuHeadingLinkRecordData> | records | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
IAsyncEnumerable<Insert> |
ToRecordData(TaskMenuHeadingLinkRow)
Extension methods to make it easy to fetch TaskMenuHeadingLinkRecordData objects from the database, using the TargetedSelect infrastructure
Declaration
public static TaskMenuHeadingLinkRecordData ToRecordData(this TaskMenuHeadingLinkRow row)
Parameters
Type | Name | Description |
---|---|---|
TaskMenuHeadingLinkRow | row |
Returns
Type | Description |
---|---|
TaskMenuHeadingLinkRecordData |