Show / Hide Table of Contents

Class TicketStatusRecordDataExtensions

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

Inheritance
Object
TicketStatusRecordDataExtensions
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class TicketStatusRecordDataExtensions : Object

Methods

FromRecord(TargetedDataRecord<TicketStatusTableInfo>)

From a TargetedDataRecord<TicketStatusTableInfo>, create and populate a TicketStatusRecordData POCO object

Declaration
public static TicketStatusRecordData FromRecord(this TargetedDataRecord<TicketStatusTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<TicketStatusTableInfo> record
Returns
Type Description
TicketStatusRecordData
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 { TicketStatusItem = r.FromRecord(), /* fetch other fields here */ });

FromSelect(TargetedSelect<TicketStatusTableInfo>)

From a TargetedSelect<TicketStatusTableInfo>, execute it and return an IEnumerable<TicketStatusRecordData> with the results

Declaration
public static IEnumerable<TicketStatusRecordData> FromSelect(this TargetedSelect<TicketStatusTableInfo> select)
Parameters
Type Name Description
TargetedSelect<TicketStatusTableInfo> select
Returns
Type Description
IEnumerable<TicketStatusRecordData>
Examples
            var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
            var result = s.FromSelect();

ToInsert(TicketStatusRecordData)

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

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

ToInserts(IEnumerable<TicketStatusRecordData>)

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

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<TicketStatusRecordData> records)
Parameters
Type Name Description
IEnumerable<TicketStatusRecordData> records
Returns
Type Description
IEnumerable<Insert>

ToRecordData(TicketStatusRow)

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

Declaration
public static TicketStatusRecordData ToRecordData(this TicketStatusRow row)
Parameters
Type Name Description
TicketStatusRow row
Returns
Type Description
TicketStatusRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top