Class ImportObjectRecordDataExtensions
Extension methods to make it easy to fetch ImportObjectRecordData objects from the database,
using the
Inheritance
System.Object
ImportObjectRecordDataExtensions
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 ImportObjectRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<ImportObjectTableInfo>)
From a TargetedDataRecord<ImportObjectTableInfo>, create and populate a ImportObjectRecordData POCO object
Declaration
public static ImportObjectRecordData FromRecord(this TargetedDataRecord<ImportObjectTableInfo> record)
Parameters
Type | Name | Description |
---|---|---|
TargetedDataRecord<ImportObjectTableInfo> | record |
Returns
Type | Description |
---|---|
ImportObjectRecordData |
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 { ImportObjectItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<ImportObjectTableInfo>)
From a TargetedSelect<ImportObjectTableInfo>, execute it and return an IEnumerable<ImportObjectRecordData> with the results
Declaration
public static IEnumerable<ImportObjectRecordData> FromSelect(this TargetedSelect<ImportObjectTableInfo> select)
Parameters
Type | Name | Description |
---|---|---|
TargetedSelect<ImportObjectTableInfo> | select |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ImportObjectRecordData> |
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(ImportObjectRecordData)
Declaration
public static Insert ToInsert(this ImportObjectRecordData record)
Parameters
Type | Name | Description |
---|---|---|
ImportObjectRecordData | record |
Returns
Type | Description |
---|---|
Insert |
ToInserts(IEnumerable<ImportObjectRecordData>)
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<ImportObjectRecordData> records)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ImportObjectRecordData> | records |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Insert> |