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