Show / Hide Table of Contents

Class NewsFeedItemRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<NewsFeedItemTableInfo>)

From a TargetedDataRecord<NewsFeedItemTableInfo>, create and populate a NewsFeedItemRecordData POCO object

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

FromSelect(TargetedSelect<NewsFeedItemTableInfo>)

From a TargetedSelect<NewsFeedItemTableInfo>, execute it and return an IEnumerable<NewsFeedItemRecordData> with the results

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

FromSelectAsync(TargetedSelect<NewsFeedItemTableInfo>, CancellationToken)

From a TargetedSelect<NewsFeedItemTableInfo>, execute it and return an IEnumerable<NewsFeedItemRecordData> with the results

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

ToInsertAsync(NewsFeedItemRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<NewsFeedItemRecordData>, CancellationToken)

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

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

ToRecordData(NewsFeedItemRow)

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

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