Show / Hide Table of Contents

Class ConsentSourceRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ConsentSourceTableInfo>)

From a TargetedDataRecord<ConsentSourceTableInfo>, create and populate a ConsentSourceRecordData POCO object

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

FromSelect(TargetedSelect<ConsentSourceTableInfo>)

From a TargetedSelect<ConsentSourceTableInfo>, execute it and return an IEnumerable<ConsentSourceRecordData> with the results

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

ToInsert(ConsentSourceRecordData)

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

ToInserts(IEnumerable<ConsentSourceRecordData>)

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