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