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