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