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