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