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