Class TravelGeneratedDatabaseRecordDataExtensions
Inheritance
TravelGeneratedDatabaseRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class TravelGeneratedDatabaseRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<TravelGeneratedDatabaseTableInfo>)
Declaration
public static TravelGeneratedDatabaseRecordData FromRecord(this TargetedDataRecord<TravelGeneratedDatabaseTableInfo> 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 { TravelGeneratedDatabaseItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<TravelGeneratedDatabaseTableInfo>)
From a TargetedSelect<TravelGeneratedDatabaseTableInfo>, execute it and return an IEnumerable<TravelGeneratedDatabaseRecordData> with the results
Declaration
public static IEnumerable<TravelGeneratedDatabaseRecordData> FromSelect(this TargetedSelect<TravelGeneratedDatabaseTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(TravelGeneratedDatabaseRecordData)
Declaration
public static Insert ToInsert(this TravelGeneratedDatabaseRecordData record)
Parameters
Returns
ToInserts(IEnumerable<TravelGeneratedDatabaseRecordData>)
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<TravelGeneratedDatabaseRecordData> records)
Parameters
Returns
ToRecordData(TravelGeneratedDatabaseRow)
Declaration
public static TravelGeneratedDatabaseRecordData ToRecordData(this TravelGeneratedDatabaseRow row)
Parameters
Returns