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