Show / Hide Table of Contents

Class LoginCustomerRecordDataExtensions

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

Inheritance
object
LoginCustomerRecordDataExtensions
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 LoginCustomerRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<LoginCustomerTableInfo>)

From a TargetedDataRecord<LoginCustomerTableInfo>, create and populate a LoginCustomerRecordData POCO object

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

FromSelect(TargetedSelect<LoginCustomerTableInfo>)

From a TargetedSelect<LoginCustomerTableInfo>, execute it and return an IEnumerable<LoginCustomerRecordData> with the results

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

FromSelectAsync(TargetedSelect<LoginCustomerTableInfo>, CancellationToken)

From a TargetedSelect<LoginCustomerTableInfo>, execute it and return an IEnumerable<LoginCustomerRecordData> with the results

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

ToInsertAsync(LoginCustomerRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<LoginCustomerRecordData>, CancellationToken)

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

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

ToRecordData(LoginCustomerRow)

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

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