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