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