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