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