Show / Hide Table of Contents

Class AccessScriptRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<AccessScriptTableInfo>)

From a TargetedDataRecord<AccessScriptTableInfo>, create and populate a AccessScriptRecordData POCO object

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

FromSelect(TargetedSelect<AccessScriptTableInfo>)

From a TargetedSelect<AccessScriptTableInfo>, execute it and return an IEnumerable<AccessScriptRecordData> with the results

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

FromSelectAsync(TargetedSelect<AccessScriptTableInfo>, CancellationToken)

From a TargetedSelect<AccessScriptTableInfo>, execute it and return an IEnumerable<AccessScriptRecordData> with the results

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

ToInsertAsync(AccessScriptRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<AccessScriptRecordData>, CancellationToken)

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

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

ToRecordData(AccessScriptRow)

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

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