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