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