Show / Hide Table of Contents

Class LegalBaseRecordDataExtensions

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

Inheritance
System.Object
LegalBaseRecordDataExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class LegalBaseRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<LegalBaseTableInfo>)

From a TargetedDataRecord<LegalBaseTableInfo>, create and populate a LegalBaseRecordData POCO object

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

FromSelect(TargetedSelect<LegalBaseTableInfo>)

From a TargetedSelect<LegalBaseTableInfo>, execute it and return an IEnumerable<LegalBaseRecordData> with the results

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

ToInsert(LegalBaseRecordData)

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

ToInserts(IEnumerable<LegalBaseRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<LegalBaseRecordData> records)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<LegalBaseRecordData> records
Returns
Type Description
System.Collections.Generic.IEnumerable<Insert>
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top