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