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