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