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