Show / Hide Table of Contents

Class AppointmentRecordDataExtensions

Extension methods to make it easy to fetch AppointmentRecordData objects from the database, using the infrastructure

Inheritance
Object
AppointmentRecordDataExtensions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class AppointmentRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<AppointmentTableInfo>)

From a TargetedDataRecord<AppointmentTableInfo>, create and populate a AppointmentRecordData POCO object

Declaration
public static AppointmentRecordData FromRecord(this TargetedDataRecord<AppointmentTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<AppointmentTableInfo> record
Returns
Type Description
AppointmentRecordData
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
Type Name Description
TargetedSelect<AppointmentTableInfo> select
Returns
Type Description
IEnumerable<AppointmentRecordData>
Examples
            var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
            var result = s.FromSelect();

ToInsert(AppointmentRecordData)

Declaration
public static Insert ToInsert(this AppointmentRecordData record)
Parameters
Type Name Description
AppointmentRecordData record
Returns
Type Description
Insert

ToInserts(IEnumerable<AppointmentRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<AppointmentRecordData> records)
Parameters
Type Name Description
IEnumerable<AppointmentRecordData> records
Returns
Type Description
IEnumerable<Insert>
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Back to top