Show / Hide Table of Contents

Class AvailableFontsRecordDataExtensions

Extension methods to make it easy to fetch AvailableFontsRecordData objects from the database, using the TargetedSelect infrastructure

Inheritance
object
AvailableFontsRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class AvailableFontsRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<AvailableFontsTableInfo>)

From a TargetedDataRecord<AvailableFontsTableInfo>, create and populate a AvailableFontsRecordData POCO object

Declaration
public static AvailableFontsRecordData FromRecord(this TargetedDataRecord<AvailableFontsTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<AvailableFontsTableInfo> record
Returns
Type Description
AvailableFontsRecordData
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 { AvailableFontsItem = r.FromRecord(), /* fetch other fields here */ });

FromSelect(TargetedSelect<AvailableFontsTableInfo>)

From a TargetedSelect<AvailableFontsTableInfo>, execute it and return an IEnumerable<AvailableFontsRecordData> with the results

Declaration
public static IEnumerable<AvailableFontsRecordData> FromSelect(this TargetedSelect<AvailableFontsTableInfo> select)
Parameters
Type Name Description
TargetedSelect<AvailableFontsTableInfo> select
Returns
Type Description
IEnumerable<AvailableFontsRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

FromSelectAsync(TargetedSelect<AvailableFontsTableInfo>, CancellationToken)

From a TargetedSelect<AvailableFontsTableInfo>, execute it and return an IEnumerable<AvailableFontsRecordData> with the results

Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<AvailableFontsRecordData> FromSelectAsync(this TargetedSelect<AvailableFontsTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Type Name Description
TargetedSelect<AvailableFontsTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<AvailableFontsRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(AvailableFontsRecordData, CancellationToken)

Extension methods to make it easy to fetch AvailableFontsRecordData objects from the database, using the TargetedSelect infrastructure

Declaration
public static Task<Insert> ToInsertAsync(this AvailableFontsRecordData record, CancellationToken cancellationToken = default)
Parameters
Type Name Description
AvailableFontsRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

ToInsertsAsync(IEnumerable<AvailableFontsRecordData>, CancellationToken)

Extension methods to make it easy to fetch AvailableFontsRecordData objects from the database, using the TargetedSelect infrastructure

Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<AvailableFontsRecordData> records, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerable<AvailableFontsRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

ToRecordData(AvailableFontsRow)

Extension methods to make it easy to fetch AvailableFontsRecordData objects from the database, using the TargetedSelect infrastructure

Declaration
public static AvailableFontsRecordData ToRecordData(this AvailableFontsRow row)
Parameters
Type Name Description
AvailableFontsRow row
Returns
Type Description
AvailableFontsRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top