Show / Hide Table of Contents

Class ModuleOwnerRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ModuleOwnerTableInfo>)

From a TargetedDataRecord<ModuleOwnerTableInfo>, create and populate a ModuleOwnerRecordData POCO object

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

FromSelect(TargetedSelect<ModuleOwnerTableInfo>)

From a TargetedSelect<ModuleOwnerTableInfo>, execute it and return an IEnumerable<ModuleOwnerRecordData> with the results

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

FromSelectAsync(TargetedSelect<ModuleOwnerTableInfo>, CancellationToken)

From a TargetedSelect<ModuleOwnerTableInfo>, execute it and return an IEnumerable<ModuleOwnerRecordData> with the results

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

ToInsertAsync(ModuleOwnerRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ModuleOwnerRecordData>, CancellationToken)

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

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

ToRecordData(ModuleOwnerRow)

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

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