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