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

ToInsert(PasswordRulesRecordData)

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

ToInserts(IEnumerable<PasswordRulesRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<PasswordRulesRecordData> records)
Parameters
Type Name Description
IEnumerable<PasswordRulesRecordData> records
Returns
Type Description
IEnumerable<Insert>
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top