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