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