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