DateDiffAttribute class

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

DateDiff expression attribute

[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class DateDiffAttribute : BaseExpressionAttribute
parameter description
part Datepart like "year", "month" etc.
start An expression that returns a date value
end An expression that returns a date value

Public Members

name description
DateDiffAttribute(…) DateDiff expression attribute
End { get; } Date expression 1
Part { get; } Date part
Start { get; } Date expression 1
override Translate(…)

Exceptions

exception condition
ArgumentNullException One of expressions is null

Remarks

Creates a new instance

See Also