Method RegisterProjection
| Improve this Doc View SourceRegisterProjection<TModel, TProjection>(Expression<Func<TModel, TProjection>>)
Registers a new Projection.
Declaration
protected static void RegisterProjection<TModel, TProjection>(Expression<Func<TModel, TProjection>> getter)
where TModel : Model where TProjection : Projection, new()
Parameters
| Type | Name | Description |
|---|---|---|
| System.Linq.Expressions.Expression<System.Func<TModel, TProjection>> | getter | The lambda expression of the Projection getter. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The type of model which the column is registered on. |
| TProjection | The type of the Projection. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
| System.ArgumentException |
|