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