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