Class DatabaseMaintenancePeriodConverter
A class to calculate when to do database maintenance based on periods.
public static class DatabaseMaintenancePeriodConverter
- Inheritance
-
DatabaseMaintenancePeriodConverter
- Inherited Members
Methods
Add(in DateTime, DatabaseMaintenancePeriod)
Adds the specified period to a date.
public static DateTime Add(in DateTime date, DatabaseMaintenancePeriod period)
Parameters
date
DateTimeThe date.
period
DatabaseMaintenancePeriodThe period.
Returns
- DateTime
The added date.
Subtract(in DateTime, DatabaseMaintenancePeriod)
Subtracts the specified period from a date.
public static DateTime Subtract(in DateTime date, DatabaseMaintenancePeriod period)
Parameters
date
DateTimeThe date.
period
DatabaseMaintenancePeriodThe period.
Returns
- DateTime
The subtracted date.