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