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