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