DateDiffAttribute constructor

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

Creates a new instance

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

Exceptions

exception condition
ArgumentNullException One of expressions is null

See Also