19 namespace Deveel.Data.Sql.Objects {
34 : this((years*12) + months) {
43 int IComparable.CompareTo(
object obj) {
49 return CompareTo((SqlYearToMonth) other);
51 throw new NotSupportedException();
56 get {
return months == null; }
62 public int TotalMonths {
65 throw new NullReferenceException();
74 public double TotalYears {
77 throw new NullReferenceException();
79 return (months.Value/12);
91 if (other.
IsNull && IsNull)
93 if (IsNull && !other.
IsNull)
95 if (!IsNull && other.
IsNull)
98 return months.Value.CompareTo(other.
months.Value);
SqlYearToMonth(int years, int months)
SqlYearToMonth(int months)
Defines the contract for a valid SQL Object
bool IsComparableTo(ISqlObject other)
Checks if the current object is comparable with the given one.
SqlYearToMonth(bool isNull)
int CompareTo(ISqlObject other)
int CompareTo(SqlYearToMonth other)
A month span representation of time.