IRowOperationInterceptor.FindRow method
Intercepts EntityConnectionExtensions's ById/TryById/First/TryFirst/Single/TrySingle methods.
public OptionalValue<IRow> FindRow(Type rowType, OptionalValue<object> id, ICriteria where,
Action<SqlQuery> editQuery, bool byIdOrSingle)
| parameter | description |
|---|---|
| rowType | Type of the row. |
| id | The identifier if one of the ById methods is used. |
| where | The where criteria for the First/TryFirst/Single/TrySingle methods. |
| editQuery | Callback to edit the query. |
| byIdOrSingle | True if one of the ById/TryById/Single/TrySingle methods is used. |
Return Value
Entity with the given ID, or null if not found.
See Also
- struct OptionalValue<T>
- interface IRow
- interface ICriteria
- class SqlQuery
- interface IRowOperationInterceptor