Show / Hide Table of Contents

Class UserGroupLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<UserGroupLinkTableInfo>)

From a TargetedDataRecord<UserGroupLinkTableInfo>, create and populate a UserGroupLinkRecordData POCO object

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

FromSelect(TargetedSelect<UserGroupLinkTableInfo>)

From a TargetedSelect<UserGroupLinkTableInfo>, execute it and return an IEnumerable<UserGroupLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<UserGroupLinkTableInfo>, CancellationToken)

From a TargetedSelect<UserGroupLinkTableInfo>, execute it and return an IEnumerable<UserGroupLinkRecordData> with the results

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

ToInsertAsync(UserGroupLinkRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<UserGroupLinkRecordData>, CancellationToken)

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

ToRecordData(UserGroupLinkRow)

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