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