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