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