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