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.2.31040.0 8_2_dev 3db1cb9c, built 2020-09-23 07:47:05 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