C# Class Stormpath.SDK.WithinExpressionExtensions

Provides a set of static methods for making shorthand date queries within LINQ-to-Stormpath.
Show file Open project: stormpath/stormpath-sdk-dotnet

Public Methods

Method Description
Within ( DateTimeOffset field, int year ) : bool

Asserts that a DateTimeOffset falls within a particular year.

Within ( DateTimeOffset field, int year, int month ) : bool

Asserts that a DateTimeOffset falls within a particular month and year.

Within ( DateTimeOffset field, int year, int month, int day ) : bool

Asserts that a DateTimeOffset falls within a particular day, month, and year.

Within ( DateTimeOffset field, int year, int month, int day, int hour ) : bool

Asserts that a DateTimeOffset falls within a particular hour on a particular day, month, and year.

Within ( DateTimeOffset field, int year, int month, int day, int hour, int minute ) : bool

Asserts that a DateTimeOffset falls within a particular hour and minute on a particular day, month, and year.

Within ( DateTimeOffset field, int year, int month, int day, int hour, int minute, int second ) : bool

Asserts that a DateTimeOffset falls within a particular hour, minute, and second on a particular day, month, and year.

Method Details

Within() public static method

Asserts that a DateTimeOffset falls within a particular year.
This method can only be used from inside a LINQ Where predicate.
public static Within ( DateTimeOffset field, int year ) : bool
field DateTimeOffset The date field to compare.
year int The year.
return bool

Within() public static method

Asserts that a DateTimeOffset falls within a particular month and year.
This method can only be used from inside a LINQ Where predicate.
public static Within ( DateTimeOffset field, int year, int month ) : bool
field DateTimeOffset The date field to compare.
year int The year.
month int The month.
return bool

Within() public static method

Asserts that a DateTimeOffset falls within a particular day, month, and year.
This method can only be used from inside a LINQ Where predicate.
public static Within ( DateTimeOffset field, int year, int month, int day ) : bool
field DateTimeOffset The date field to compare.
year int The year.
month int The month.
day int The day.
return bool

Within() public static method

Asserts that a DateTimeOffset falls within a particular hour on a particular day, month, and year.
This method can only be used from inside a LINQ Where predicate.
public static Within ( DateTimeOffset field, int year, int month, int day, int hour ) : bool
field DateTimeOffset The date field to compare.
year int The year.
month int The month.
day int The day.
hour int The hour.
return bool

Within() public static method

Asserts that a DateTimeOffset falls within a particular hour and minute on a particular day, month, and year.
This method can only be used from inside a LINQ Where predicate.
public static Within ( DateTimeOffset field, int year, int month, int day, int hour, int minute ) : bool
field DateTimeOffset The date field to compare.
year int The year.
month int The month.
day int The day.
hour int The hour.
minute int The minute.
return bool

Within() public static method

Asserts that a DateTimeOffset falls within a particular hour, minute, and second on a particular day, month, and year.
This method can only be used from inside a LINQ Where predicate.
public static Within ( DateTimeOffset field, int year, int month, int day, int hour, int minute, int second ) : bool
field DateTimeOffset The date field to compare.
year int The year.
month int The month.
day int The day.
hour int The hour.
minute int The minute.
second int The second.
return bool