Show / Hide Table of Contents

Class LanguageInfoCountryRecordDataExtensions

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

Inheritance
object
LanguageInfoCountryRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class LanguageInfoCountryRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<LanguageInfoCountryTableInfo>)

From a TargetedDataRecord<LanguageInfoCountryTableInfo>, create and populate a LanguageInfoCountryRecordData POCO object

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

FromSelect(TargetedSelect<LanguageInfoCountryTableInfo>)

From a TargetedSelect<LanguageInfoCountryTableInfo>, execute it and return an IEnumerable<LanguageInfoCountryRecordData> with the results

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

FromSelectAsync(TargetedSelect<LanguageInfoCountryTableInfo>, CancellationToken)

From a TargetedSelect<LanguageInfoCountryTableInfo>, execute it and return an IEnumerable<LanguageInfoCountryRecordData> with the results

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

ToInsertAsync(LanguageInfoCountryRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<LanguageInfoCountryRecordData>, CancellationToken)

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

ToRecordData(LanguageInfoCountryRow)

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