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