Show / Hide Table of Contents

Class UserRoleLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<UserRoleLinkTableInfo>)

From a TargetedDataRecord<UserRoleLinkTableInfo>, create and populate a UserRoleLinkRecordData POCO object

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

FromSelect(TargetedSelect<UserRoleLinkTableInfo>)

From a TargetedSelect<UserRoleLinkTableInfo>, execute it and return an IEnumerable<UserRoleLinkRecordData> with the results

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

ToInsert(UserRoleLinkRecordData)

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

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

ToInserts(IEnumerable<UserRoleLinkRecordData>)

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

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

ToRecordData(UserRoleLinkRow)

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

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