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