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