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