Show / Hide Table of Contents

Class Obsolete4RecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<Obsolete4TableInfo>)

From a TargetedDataRecord<Obsolete4TableInfo>, create and populate a Obsolete4RecordData POCO object

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

FromSelect(TargetedSelect<Obsolete4TableInfo>)

From a TargetedSelect<Obsolete4TableInfo>, execute it and return an IEnumerable<Obsolete4RecordData> with the results

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

FromSelectAsync(TargetedSelect<Obsolete4TableInfo>, CancellationToken)

From a TargetedSelect<Obsolete4TableInfo>, execute it and return an IEnumerable<Obsolete4RecordData> with the results

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

ToInsertAsync(Obsolete4RecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<Obsolete4RecordData>, CancellationToken)

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

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

ToRecordData(Obsolete4Row)

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

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