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