Show / Hide Table of Contents

Class LogEventsRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<LogEventsTableInfo>)

From a TargetedDataRecord<LogEventsTableInfo>, create and populate a LogEventsRecordData POCO object

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

FromSelect(TargetedSelect<LogEventsTableInfo>)

From a TargetedSelect<LogEventsTableInfo>, execute it and return an IEnumerable<LogEventsRecordData> with the results

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

FromSelectAsync(TargetedSelect<LogEventsTableInfo>, CancellationToken)

From a TargetedSelect<LogEventsTableInfo>, execute it and return an IEnumerable<LogEventsRecordData> with the results

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

ToInsertAsync(LogEventsRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<LogEventsRecordData>, CancellationToken)

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

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

ToRecordData(LogEventsRow)

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

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