DatePartAttribute constructor

namespace: Serenity.Data.Mapping   assemblySerenity.Net.Data

Creates a new instance

public DatePartAttribute(DateParts part, object expression)
parameter description
expression An expression that returns a date value
part Datepart like "year", "month" etc.

Exceptions

exception condition
ArgumentNullException One of expressions is null

See Also