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