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