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