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