Show / Hide Table of Contents

Class ActiveUserRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ActiveUserTableInfo>)

From a TargetedDataRecord<ActiveUserTableInfo>, create and populate a ActiveUserRecordData POCO object

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

FromSelect(TargetedSelect<ActiveUserTableInfo>)

From a TargetedSelect<ActiveUserTableInfo>, execute it and return an IEnumerable<ActiveUserRecordData> with the results

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

ToInsert(ActiveUserRecordData)

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

ToInserts(IEnumerable<ActiveUserRecordData>)

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