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