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