Class PasswordRulesRecordDataExtensions
Extension methods to make it easy to fetch PasswordRulesRecordData objects from the database,
using the infrastructure
Inheritance
PasswordRulesRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class PasswordRulesRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<PasswordRulesTableInfo>)
Declaration
public static PasswordRulesRecordData FromRecord(this TargetedDataRecord<PasswordRulesTableInfo> record)
Parameters
Returns
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
Returns
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
Returns
ToInserts(IEnumerable<PasswordRulesRecordData>)
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<PasswordRulesRecordData> records)
Parameters
Returns