Click or drag to resize

DatabaseAccessorTGetAllRowsTParam Method (ExpressionFuncT, TParam)

Gets all the rows from a table, including a related object

Namespace:  LynceeTec.Eucalyptus
Assembly:  LynceeTec.Eucalyptus (in LynceeTec.Eucalyptus.dll) Version: 8.1.17212.0 8_1_dev 6ff713ba, built 2019-10-03 13:47:23 UTC
Syntax
public List<T> GetAllRows<TParam>(
	Expression<Func<T, TParam>> include
)

Parameters

include
Type: System.Linq.ExpressionsExpressionFuncT, TParam
An expression indicating which related object to include. The related object can be several levels down (see code example)

Type Parameters

TParam

Return Value

Type: ListT
Examples
Usage:
DatabaseAccessor<MeasurementConfig> m_measConfigAccessor = new DatabaseAccessor<MeasurementConfig>();

m_measConfigAccessor.GetAllRows(m => m.JoinConfigSource);

//To include deeper level (all intermediate levels are included)
m_measConfigAccessor.GetAllRows(m => m.JoinConfigSource.Select(j => j.InstalledLaserSources);
See Also