Show / Hide Table of Contents

Class PasswordRulesRecordDataExtensions

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

Inheritance
Object
PasswordRulesRecordDataExtensions
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class PasswordRulesRecordDataExtensions : Object

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();

ToInsert(PasswordRulesRecordData)

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

Declaration
public static Insert ToInsert(this PasswordRulesRecordData record)
Parameters
Type Name Description
PasswordRulesRecordData record
Returns
Type Description
Insert

ToInserts(IEnumerable<PasswordRulesRecordData>)

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

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<PasswordRulesRecordData> records)
Parameters
Type Name Description
IEnumerable<PasswordRulesRecordData> records
Returns
Type Description
IEnumerable<Insert>

ToRecordData(PasswordRulesRow)

Extension methods to make it easy to fetch PasswordRulesRecordData objects from the database, using the 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