Show / Hide Table of Contents

Method RegisterProjection

| Improve this Doc View Source

RegisterProjection<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

getter is null.

System.ArgumentException

getter expression is not a valid getter.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest