Class UserGroupLinkRecordDataExtensions
Extension methods to make it easy to fetch UserGroupLinkRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
UserGroupLinkRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class UserGroupLinkRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<UserGroupLinkTableInfo>)
Declaration
public static UserGroupLinkRecordData FromRecord(this TargetedDataRecord<UserGroupLinkTableInfo> record)
Parameters
Returns
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
Returns
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
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(UserGroupLinkRecordData, CancellationToken)
Extension methods to make it easy to fetch UserGroupLinkRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this UserGroupLinkRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<UserGroupLinkRecordData>, CancellationToken)
Extension methods to make it easy to fetch UserGroupLinkRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<UserGroupLinkRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(UserGroupLinkRow)
Extension methods to make it easy to fetch UserGroupLinkRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static UserGroupLinkRecordData ToRecordData(this UserGroupLinkRow row)
Parameters
Returns