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