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