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