Class UserRoleLinkRecordDataExtensions
Extension methods to make it easy to fetch UserRoleLinkRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
UserRoleLinkRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class UserRoleLinkRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<UserRoleLinkTableInfo>)
Declaration
public static UserRoleLinkRecordData FromRecord(this TargetedDataRecord<UserRoleLinkTableInfo> 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 { UserRoleLinkItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<UserRoleLinkTableInfo>)
From a TargetedSelect<UserRoleLinkTableInfo>, execute it and return an IEnumerable<UserRoleLinkRecordData> with the results
Declaration
public static IEnumerable<UserRoleLinkRecordData> FromSelect(this TargetedSelect<UserRoleLinkTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
FromSelectAsync(TargetedSelect<UserRoleLinkTableInfo>, CancellationToken)
From a TargetedSelect<UserRoleLinkTableInfo>, execute it and return an IEnumerable<UserRoleLinkRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<UserRoleLinkRecordData> FromSelectAsync(this TargetedSelect<UserRoleLinkTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(UserRoleLinkRecordData, CancellationToken)
Extension methods to make it easy to fetch UserRoleLinkRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this UserRoleLinkRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<UserRoleLinkRecordData>, CancellationToken)
Extension methods to make it easy to fetch UserRoleLinkRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<UserRoleLinkRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(UserRoleLinkRow)
Extension methods to make it easy to fetch UserRoleLinkRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static UserRoleLinkRecordData ToRecordData(this UserRoleLinkRow row)
Parameters
Returns