Class OwnerContactLinkRecordDataExtensions
Extension methods to make it easy to fetch OwnerContactLinkRecordData objects from the database,
using the
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class OwnerContactLinkRecordDataExtensions : Object
Methods
FromRecord(TargetedDataRecord<OwnerContactLinkTableInfo>)
From a TargetedDataRecord<OwnerContactLinkTableInfo>, create and populate a OwnerContactLinkRecordData POCO object
Declaration
public static OwnerContactLinkRecordData FromRecord(this TargetedDataRecord<OwnerContactLinkTableInfo> record)
Parameters
Type | Name | Description |
---|---|---|
TargetedDataRecord<OwnerContactLinkTableInfo> | record |
Returns
Type | Description |
---|---|
OwnerContactLinkRecordData |
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 { OwnerContactLinkItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<OwnerContactLinkTableInfo>)
From a TargetedSelect<OwnerContactLinkTableInfo>, execute it and return an IEnumerable<OwnerContactLinkRecordData> with the results
Declaration
public static IEnumerable<OwnerContactLinkRecordData> FromSelect(this TargetedSelect<OwnerContactLinkTableInfo> select)
Parameters
Type | Name | Description |
---|---|---|
TargetedSelect<OwnerContactLinkTableInfo> | select |
Returns
Type | Description |
---|---|
IEnumerable<OwnerContactLinkRecordData> |
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(OwnerContactLinkRecordData)
Extension methods to make it easy to fetch OwnerContactLinkRecordData objects from the database,
using the
Declaration
public static Insert ToInsert(this OwnerContactLinkRecordData record)
Parameters
Type | Name | Description |
---|---|---|
OwnerContactLinkRecordData | record |
Returns
Type | Description |
---|---|
Insert |
ToInserts(IEnumerable<OwnerContactLinkRecordData>)
Extension methods to make it easy to fetch OwnerContactLinkRecordData objects from the database,
using the
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<OwnerContactLinkRecordData> records)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<OwnerContactLinkRecordData> | records |
Returns
Type | Description |
---|---|
IEnumerable<Insert> |
ToRecordData(OwnerContactLinkRow)
Extension methods to make it easy to fetch OwnerContactLinkRecordData objects from the database,
using the
Declaration
public static OwnerContactLinkRecordData ToRecordData(this OwnerContactLinkRow row)
Parameters
Type | Name | Description |
---|---|---|
OwnerContactLinkRow | row |
Returns
Type | Description |
---|---|
OwnerContactLinkRecordData |