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