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