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