Show / Hide Table of Contents

Class ProjStatusRecordDataExtensions

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

Inheritance
object
ProjStatusRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class ProjStatusRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<ProjStatusTableInfo>)

From a TargetedDataRecord<ProjStatusTableInfo>, create and populate a ProjStatusRecordData POCO object

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

FromSelect(TargetedSelect<ProjStatusTableInfo>)

From a TargetedSelect<ProjStatusTableInfo>, execute it and return an IEnumerable<ProjStatusRecordData> with the results

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

FromSelectAsync(TargetedSelect<ProjStatusTableInfo>, CancellationToken)

From a TargetedSelect<ProjStatusTableInfo>, execute it and return an IEnumerable<ProjStatusRecordData> with the results

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

ToInsertAsync(ProjStatusRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<ProjStatusRecordData>, CancellationToken)

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

ToRecordData(ProjStatusRow)

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