Show / Hide Table of Contents

Class PasswordRulesRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<PasswordRulesTableInfo>)

From a TargetedDataRecord<PasswordRulesTableInfo>, create and populate a PasswordRulesRecordData POCO object

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

FromSelect(TargetedSelect<PasswordRulesTableInfo>)

From a TargetedSelect<PasswordRulesTableInfo>, execute it and return an IEnumerable<PasswordRulesRecordData> with the results

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

FromSelectAsync(TargetedSelect<PasswordRulesTableInfo>, CancellationToken)

From a TargetedSelect<PasswordRulesTableInfo>, execute it and return an IEnumerable<PasswordRulesRecordData> with the results

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

ToInsertAsync(PasswordRulesRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<PasswordRulesRecordData>, CancellationToken)

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

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

ToRecordData(PasswordRulesRow)

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

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