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