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