Show / Hide Table of Contents

Class CategoryGroupLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<CategoryGroupLinkTableInfo>)

From a TargetedDataRecord<CategoryGroupLinkTableInfo>, create and populate a CategoryGroupLinkRecordData POCO object

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

FromSelect(TargetedSelect<CategoryGroupLinkTableInfo>)

From a TargetedSelect<CategoryGroupLinkTableInfo>, execute it and return an IEnumerable<CategoryGroupLinkRecordData> with the results

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

ToInsert(CategoryGroupLinkRecordData)

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

ToInserts(IEnumerable<CategoryGroupLinkRecordData>)

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