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