Class TZDstRuleRecordDataExtensions
Extension methods to make it easy to fetch TZDstRuleRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
TZDstRuleRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class TZDstRuleRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<TZDstRuleTableInfo>)
From a TargetedDataRecord<TZDstRuleTableInfo>, create and populate a TZDstRuleRecordData POCO object
Declaration
public static TZDstRuleRecordData FromRecord(this TargetedDataRecord<TZDstRuleTableInfo> 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 { TZDstRuleItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<TZDstRuleTableInfo>)
From a TargetedSelect<TZDstRuleTableInfo>, execute it and return an IEnumerable<TZDstRuleRecordData> with the results
Declaration
public static IEnumerable<TZDstRuleRecordData> FromSelect(this TargetedSelect<TZDstRuleTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(TZDstRuleRecordData)
Extension methods to make it easy to fetch TZDstRuleRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Insert ToInsert(this TZDstRuleRecordData record)
Parameters
Returns
ToInserts(IEnumerable<TZDstRuleRecordData>)
Extension methods to make it easy to fetch TZDstRuleRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<TZDstRuleRecordData> records)
Parameters
Returns
ToRecordData(TZDstRuleRow)
Extension methods to make it easy to fetch TZDstRuleRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static TZDstRuleRecordData ToRecordData(this TZDstRuleRow row)
Parameters
Returns