Show / Hide Table of Contents

Class CopilotDataSourceSettingRecordDataExtensions

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

Inheritance
object
CopilotDataSourceSettingRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class CopilotDataSourceSettingRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<CopilotDataSourceSettingTableInfo>)

From a TargetedDataRecord<CopilotDataSourceSettingTableInfo>, create and populate a CopilotDataSourceSettingRecordData POCO object

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

FromSelect(TargetedSelect<CopilotDataSourceSettingTableInfo>)

From a TargetedSelect<CopilotDataSourceSettingTableInfo>, execute it and return an IEnumerable<CopilotDataSourceSettingRecordData> with the results

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

FromSelectAsync(TargetedSelect<CopilotDataSourceSettingTableInfo>, CancellationToken)

From a TargetedSelect<CopilotDataSourceSettingTableInfo>, execute it and return an IEnumerable<CopilotDataSourceSettingRecordData> with the results

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

ToInsertAsync(CopilotDataSourceSettingRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<CopilotDataSourceSettingRecordData>, CancellationToken)

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

ToRecordData(CopilotDataSourceSettingRow)

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