Show / Hide Table of Contents

Method RegisterLocalColumn

| Improve this Doc View Source

RegisterLocalColumn<TModel, T>(Expression<Func<TModel, LocalColumn<T>>>)

Registers a new local column.

Declaration
protected static void RegisterLocalColumn<TModel, T>(Expression<Func<TModel, LocalColumn<T>>> getter)

    where TModel : Model
Parameters
Type Name Description
System.Linq.Expressions.Expression<System.Func<TModel, LocalColumn<T>>> getter

The lambda expression of the column getter.

Type Parameters
Name Description
TModel

The type of model which the column is registered on.

T

The data type of the local column.

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