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