Show / Hide Table of Contents

Class TagsRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<TagsTableInfo>)

From a TargetedDataRecord<TagsTableInfo>, create and populate a TagsRecordData POCO object

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

FromSelect(TargetedSelect<TagsTableInfo>)

From a TargetedSelect<TagsTableInfo>, execute it and return an IEnumerable<TagsRecordData> with the results

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

ToInsert(TagsRecordData)

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

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

ToInserts(IEnumerable<TagsRecordData>)

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

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

ToRecordData(TagsRow)

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

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