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