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