Show / Hide Table of Contents

Class LoginCustomerRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<LoginCustomerTableInfo>)

From a TargetedDataRecord<LoginCustomerTableInfo>, create and populate a LoginCustomerRecordData POCO object

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

FromSelect(TargetedSelect<LoginCustomerTableInfo>)

From a TargetedSelect<LoginCustomerTableInfo>, execute it and return an IEnumerable<LoginCustomerRecordData> with the results

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

ToInsert(LoginCustomerRecordData)

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

ToInserts(IEnumerable<LoginCustomerRecordData>)

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