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