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