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