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