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