Show / Hide Table of Contents

Class MsSubstituteRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<MsSubstituteTableInfo>)

From a TargetedDataRecord<MsSubstituteTableInfo>, create and populate a MsSubstituteRecordData POCO object

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

FromSelect(TargetedSelect<MsSubstituteTableInfo>)

From a TargetedSelect<MsSubstituteTableInfo>, execute it and return an IEnumerable<MsSubstituteRecordData> with the results

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

FromSelectAsync(TargetedSelect<MsSubstituteTableInfo>, CancellationToken)

From a TargetedSelect<MsSubstituteTableInfo>, execute it and return an IEnumerable<MsSubstituteRecordData> with the results

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

ToInsertAsync(MsSubstituteRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<MsSubstituteRecordData>, CancellationToken)

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

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

ToRecordData(MsSubstituteRow)

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

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