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