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