/// <summary>
 /// Initializes a new instance of the <see cref="NowRule"/> class.
 /// </summary>
 /// <param name="property">The property.</param>
 /// <param name="assignState">State of the object that can be assigned.</param>
 /// <param name="timeZone">The time zone.</param>
 public NowRule(string property, EntityState assignState, NowTimeZone timeZone)
     : base(property, assignState)
 {
     // lower priority because we need to assign before validate
     Priority = 10;
     TimeZone = timeZone;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NowRule"/> class.
 /// </summary>
 /// <param name="property">The property.</param>
 /// <param name="assignState">State of the object that can be assigned.</param>
 /// <param name="timeZone">The time zone.</param>
 public NowRule(string property, EntityState assignState, NowTimeZone timeZone)
     : base(property, assignState)
 {
     // lower priority because we need to assign before validate
     Priority = 10;
     TimeZone = timeZone;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NowAttribute"/> class.
 /// </summary>
 /// <param name="state">State of the object that can be assigned.</param>
 /// <param name="timeZone">The time zone.</param>
 public NowAttribute(EntityState state, NowTimeZone timeZone)
 {
     State = state;
     TimeZone = timeZone;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NowRule"/> class.
 /// </summary>
 /// <param name="property">The property.</param>
 /// <param name="timeZone">The time zone.</param>
 public NowRule(string property, NowTimeZone timeZone)
     : this(property, EntityState.Dirty, timeZone)
 { }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NowRule"/> class.
 /// </summary>
 /// <param name="property">The property.</param>
 /// <param name="timeZone">The time zone.</param>
 public NowRule(string property, NowTimeZone timeZone)
     : this(property, EntityState.Dirty, timeZone)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NowAttribute"/> class.
 /// </summary>
 /// <param name="state">State of the object that can be assigned.</param>
 /// <param name="timeZone">The time zone.</param>
 public NowAttribute(EntityState state, NowTimeZone timeZone)
 {
     State    = state;
     TimeZone = timeZone;
 }