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