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