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