Show / Hide Table of Contents

Class ServiceAuthRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ServiceAuthTableInfo>)

From a TargetedDataRecord<ServiceAuthTableInfo>, create and populate a ServiceAuthRecordData POCO object

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

FromSelect(TargetedSelect<ServiceAuthTableInfo>)

From a TargetedSelect<ServiceAuthTableInfo>, execute it and return an IEnumerable<ServiceAuthRecordData> with the results

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

ToInsert(ServiceAuthRecordData)

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

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

ToInserts(IEnumerable<ServiceAuthRecordData>)

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

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

ToRecordData(ServiceAuthRow)

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

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