Show / Hide Table of Contents

Class RoleElementRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<RoleElementTableInfo>)

From a TargetedDataRecord<RoleElementTableInfo>, create and populate a RoleElementRecordData POCO object

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

FromSelect(TargetedSelect<RoleElementTableInfo>)

From a TargetedSelect<RoleElementTableInfo>, execute it and return an IEnumerable<RoleElementRecordData> with the results

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

FromSelectAsync(TargetedSelect<RoleElementTableInfo>, CancellationToken)

From a TargetedSelect<RoleElementTableInfo>, execute it and return an IEnumerable<RoleElementRecordData> with the results

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

ToInsertAsync(RoleElementRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<RoleElementRecordData>, CancellationToken)

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

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

ToRecordData(RoleElementRow)

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

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