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