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