Class ExtraTablesResultRecordDataExtensions
Extension methods to make it easy to fetch ExtraTablesResultRecordData objects from the database,
using the
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class ExtraTablesResultRecordDataExtensions : Object
Methods
FromRecord(TargetedDataRecord<ExtraTablesResultTableInfo>)
From a TargetedDataRecord<ExtraTablesResultTableInfo>, create and populate a ExtraTablesResultRecordData POCO object
Declaration
public static ExtraTablesResultRecordData FromRecord(this TargetedDataRecord<ExtraTablesResultTableInfo> record)
Parameters
Type | Name | Description |
---|---|---|
TargetedDataRecord<ExtraTablesResultTableInfo> | record |
Returns
Type | Description |
---|---|
ExtraTablesResultRecordData |
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 { ExtraTablesResultItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<ExtraTablesResultTableInfo>)
From a TargetedSelect<ExtraTablesResultTableInfo>, execute it and return an IEnumerable<ExtraTablesResultRecordData> with the results
Declaration
public static IEnumerable<ExtraTablesResultRecordData> FromSelect(this TargetedSelect<ExtraTablesResultTableInfo> select)
Parameters
Type | Name | Description |
---|---|---|
TargetedSelect<ExtraTablesResultTableInfo> | select |
Returns
Type | Description |
---|---|
IEnumerable<ExtraTablesResultRecordData> |
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(ExtraTablesResultRecordData)
Extension methods to make it easy to fetch ExtraTablesResultRecordData objects from the database,
using the
Declaration
public static Insert ToInsert(this ExtraTablesResultRecordData record)
Parameters
Type | Name | Description |
---|---|---|
ExtraTablesResultRecordData | record |
Returns
Type | Description |
---|---|
Insert |
ToInserts(IEnumerable<ExtraTablesResultRecordData>)
Extension methods to make it easy to fetch ExtraTablesResultRecordData objects from the database,
using the
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<ExtraTablesResultRecordData> records)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ExtraTablesResultRecordData> | records |
Returns
Type | Description |
---|---|
IEnumerable<Insert> |
ToRecordData(ExtraTablesResultRow)
Extension methods to make it easy to fetch ExtraTablesResultRecordData objects from the database,
using the
Declaration
public static ExtraTablesResultRecordData ToRecordData(this ExtraTablesResultRow row)
Parameters
Type | Name | Description |
---|---|---|
ExtraTablesResultRow | row |
Returns
Type | Description |
---|---|
ExtraTablesResultRecordData |