Show / Hide Table of Contents

Class CountryGroupLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<CountryGroupLinkTableInfo>)

From a TargetedDataRecord<CountryGroupLinkTableInfo>, create and populate a CountryGroupLinkRecordData POCO object

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

FromSelect(TargetedSelect<CountryGroupLinkTableInfo>)

From a TargetedSelect<CountryGroupLinkTableInfo>, execute it and return an IEnumerable<CountryGroupLinkRecordData> with the results

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

ToInsert(CountryGroupLinkRecordData)

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

ToInserts(IEnumerable<CountryGroupLinkRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<CountryGroupLinkRecordData> records)
Parameters
Type Name Description
IEnumerable<CountryGroupLinkRecordData> 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