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