Show / Hide Table of Contents

Class CompanyDomainRecordDataExtensions

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

Inheritance
Object
CompanyDomainRecordDataExtensions
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 CompanyDomainRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<CompanyDomainTableInfo>)

From a TargetedDataRecord<CompanyDomainTableInfo>, create and populate a CompanyDomainRecordData POCO object

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

FromSelect(TargetedSelect<CompanyDomainTableInfo>)

From a TargetedSelect<CompanyDomainTableInfo>, execute it and return an IEnumerable<CompanyDomainRecordData> with the results

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

ToInsert(CompanyDomainRecordData)

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

ToInserts(IEnumerable<CompanyDomainRecordData>)

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